|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#include <uacpi/internal/notify.h>#include <uacpi/internal/shareable.h>#include <uacpi/internal/namespace.h>#include <uacpi/internal/log.h>#include <uacpi/internal/mutex.h>#include <uacpi/internal/utilities.h>#include <uacpi/internal/stdlib.h>#include <uacpi/kernel_api.h>#include <uacpi/platform/atomic.h>
Go to the source code of this file.
Classes | |
| struct | notification_ctx |
Functions | |
| uacpi_status | uacpi_initialize_notify (void) |
| void | uacpi_deinitialize_notify (void) |
| static void | free_notification_ctx (struct notification_ctx *ctx) |
| static uacpi_device_notify_handler * | load_handler (uacpi_device_notify_handler **handler) |
| static void | do_notify (uacpi_handle opaque) |
| uacpi_status | uacpi_notify_all (uacpi_namespace_node *node, uacpi_u64 value) |
| static uacpi_device_notify_handler * | handler_container (uacpi_handlers *handlers, uacpi_notify_handler target_handler) |
| uacpi_status | uacpi_install_notify_handler (uacpi_namespace_node *node, uacpi_notify_handler handler, uacpi_handle handler_context) |
| uacpi_status | uacpi_uninstall_notify_handler (uacpi_namespace_node *node, uacpi_notify_handler handler) |
Variables | |
| static uacpi_handle | notify_mutex |
|
static |
Definition at line 69 of file notify.c.
Referenced by uacpi_notify_all().
|
static |
Definition at line 39 of file notify.c.
Referenced by do_notify().
|
static |
Definition at line 166 of file notify.c.
Referenced by uacpi_install_notify_handler(), and uacpi_uninstall_notify_handler().
|
static |
| uacpi_status uacpi_initialize_notify | ( | void | ) |
| uacpi_status uacpi_install_notify_handler | ( | uacpi_namespace_node * | node, |
| uacpi_notify_handler | handler, | ||
| uacpi_handle | handler_context | ||
| ) |
Install a Notify() handler to a device node. A handler installed to the root node will receive all notifications, even if a device already has a dedicated Notify handler. 'handler_context' is passed to the handler on every invocation.
Definition at line 182 of file notify.c.
| uacpi_status uacpi_notify_all | ( | uacpi_namespace_node * | node, |
| uacpi_u64 | value | ||
| ) |
Definition at line 96 of file notify.c.
Referenced by async_run_gpe_handler(), and handle_notify().
| uacpi_status uacpi_uninstall_notify_handler | ( | uacpi_namespace_node * | node, |
| uacpi_notify_handler | handler | ||
| ) |
Uninstall a Notify() handler previously installed to a device node. The handler is guaranteed to not be running, and to never be invoked again once this function returns.
NOTE: this waits for all of the in-flight notifications to complete, and therefore must not be called from a notify handler, any other work scheduled via uacpi_kernel_schedule_work, an address space handler, or with the global lock held.
Definition at line 237 of file notify.c.
|
static |
Definition at line 13 of file notify.c.
Referenced by uacpi_deinitialize_notify(), uacpi_initialize_notify(), uacpi_install_notify_handler(), uacpi_notify_all(), and uacpi_uninstall_notify_handler().