Acpi_has_method of kernel ACPI function API,

Source: Internet
Author: User

Acpi_has_method of kernel ACPI function API,

Acpi_has_method of kernel ACPI function API

Acpi_has_method (acpi_handle handle, char * name) is used to determine whether handle provides the method specified by the name parameter. The example is as follows: if (! Acpi_has_method (adev-> handle, "_ DEP") return false. For example, this example judges that adev-> handle provides the _ DEP function. The source code analysis is as follows: bool acpi_has_method (acpi_handle handle, char * name) {acpi_handle tmp; # the original method is to query whether the handler contains the name function through acpi_get_handle, and confirm the return value through acpi_get_handle, 0 # indicates containing this function return ACPI_SUCCESS (acpi_get_handle (handle, name, & tmp);} Where # define ACPI_SUCCESS ()(! ())

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.