Function uacpi_install_gpe_handler

uacpi_status uacpi_install_gpe_handler(uacpi_namespace_node* gpe_device, uacpi_u16 idx, uacpi_gpe_triggering triggering, uacpi_gpe_handler handler, uacpi_handle ctx)

Description

Installs a handler to the provided GPE at 'idx' controlled by device

'gpe_device'. The GPE is automatically disabled & cleared according to the configured triggering upon invoking the handler. The event is optionally re-enabled (by returning UACPI_GPE_REENABLE from the handler) NOTE: 'gpe_device' may be null for GPEs managed by _GPE