PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1#pragma once
2
3typedef struct aml_object aml_object_t;
4typedef struct aml_term_list_ctx aml_term_list_ctx_t;
5
6/**
7 * @brief Debug Objects Encoding
8 * @defgroup modules_acpi_aml_encoding_debug Debug Objects
9 * @ingroup modules_acpi_aml
10 *
11 * @{
12 */
13
14/**
15 * @brief Reads a DebugObj structure from the AML byte stream.
16 *
17 * A DebugObj structure is defined as `DebugObj := DebugOp`.
18 *
19 * DebugObj's are used to output debug information about objects. When a DebugObj is writen to, the source object is
20 * printed to the kernel log. Its just a weird print statement.
21 *
22 * @see Section 19.6.26 of the ACPI specification for more details.
23 *
24 * @param ctx The context of the TermList that this structure is part of.
25 * @return On success, the DebugObj object. On failure, `NULL` and `errno` is set.
26 */
28
29/** @} */
aml_object_t * aml_debug_obj_read(aml_term_list_ctx_t *ctx)
Reads a DebugObj structure from the AML byte stream.
Definition debug.c:6
ACPI object.
Definition object.h:447
Context for reading a TermList.
Definition term.h:37