![]() If you're using Maven, specify the compiler arguments in the element of the Maven plugin node. For details, see Gradle compiler options. If you're using Gradle, specify the compiler arguments in the compilerOptions property of the Kotlin compilation task. In IntelliJ IDEA, write in the compiler arguments in the Additional command line parameters text box in Settings/Preferences | Build, Execution, Deployment | Compiler | Kotlin Compiler. There are several ways to set the compiler options and their values ( compiler arguments): Compiler options for different targets are listed on this page together with a description of each one. Kotlin compilers have a number of options for tailoring the compiling process. You can also run Kotlin compilers manually from the command line as described in the Working with command-line compiler tutorial. Maven, when you call mvn compile or mvn test-compile in a console or in the IDE. Gradle, when you call gradle build in a console or in the IDE. The IDE, when you click the Compile or Run button for your Kotlin project. The implementation of AuxKlibGetSystemFirmwareTable in these versions of the WDK can be used in versions of Windows starting with Windows Vista.Each release of Kotlin includes compilers for the supported targets: JVM, JavaScript, and native binaries for supported platforms. To use this routine, drivers should link to the version of Aux_klib.lib that is included in the WDK for Windows 8 and later versions of Windows. However, AuxKlibGetSystemFirmwareTable retrieves only the first table in the list that has this name.ĪuxKlibGetSystemFirmwareTable is the kernel-mode equivalent of the Win32 GetSystemFirmwareTable function.ĭrivers must call AuxKlibInitialize before calling AuxKlibGetSystemFirmwareTable.ĪuxKlibGetSystemFirmwareTable is defined in the Aux_klib.h header file that is included in the WDK for Windows 8 and later versions of Windows. Because OEMs can include ACPI firmware tables that are not listed in the ACPI specification, you should first call AuxKlibEnumerateSystemFirmwareTables to enumerate all ACPI tables that are currently available from the system firmware.įor ACPI, if the system firmware contains multiple tables with the same name, AuxKlibEnumerateSystemFirmwareTables enumerates them all. The ACPI table provider ('ACPI') retrieves the contents of the specified ACPI table. The value written to * ReturnLength is the size of the address range. The raw firmware table provider ('FIRM') retrieves the contents of the specified physical address range. The data written to the FirmwareTableBuffer buffer starts with the following structure: struct RawSMBIOSData The raw SMBIOS table provider ('RSMB') retrieves the contents of the raw SMBIOS firmware table. ![]() The caller-allocated buffer is too small, but the required buffer size has been written to the ReturnLength output parameter. Return codeĪn invalid parameter was supplied to the routine. Possible return values include the following error codes. Return valueĪuxKlibGetSystemFirmwareTable returns STATUS_SUCCESS if the call is successful. The size, in bytes, of the buffer pointed to by FirmwareTableBuffer.Ī pointer to a location to which the routine writes the number of bytes of data written to the buffer pointed to by FirmwareTableBuffer. For more information about the contents of this buffer, see the Remarks section. If this parameter is NULL, the value written to * ReturnLength is the required buffer size. For more information about the DESCRIPTION_HEADER structure, see the Advanced Configuration and Power Interface Specification at the Advanced Configuration and Power Interface website.Ī pointer to a caller-allocated buffer that receives the list of firmware tables. In this example, pBuffer points to the caller-allocated buffer, BUFSIZE is the size in bytes of this buffer, and dataSize is a variable to which the routine writes the number of bytes written to the buffer. ![]() Status = AuxKlibGetSystemFirmwareTable('ACPI', 'PCAF', pBuffer, BUFSIZE, &dataSize) The following code example shows how to specify FACP in an AuxKlibGetSystemFirmwareTable call: The FACP table is identified by the 4-byte value 'PCAF' (0x50434146) in the Signature field of the DESCRIPTION_HEADER structure at the start of the table. The characters in the identifier are in little-endian order.įor example, FACP is the name of a table provided by ACPI. This parameter can be one of the following values. The identifier of the firmware table provider to which the query is to be directed. Syntax NTSTATUS AuxKlibGetSystemFirmwareTable( The AuxKlibGetSystemFirmwareTable routine retrieves the specified firmware table from the firmware table provider.
0 Comments
Leave a Reply. |