PatchworkOS
a7b3d61
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
mid.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
modules/acpi/aml/aml.h
>
4
5
/**
6
* @brief Extract Portion of Buffer or String
7
* @defgroup modules_acpi_aml_mid Mid
8
* @ingroup modules_acpi_aml
9
*
10
* @see Section 19.6.86 of the ACPI specification for more details.
11
*
12
* @{
13
*/
14
15
/**
16
* @brief Performs a "mid" operation, extracting a portion of a buffer or string.
17
*
18
* @param state The AML state.
19
* @param bufferString The buffer or string object to extract from.
20
* @param index The starting index for the extraction.
21
* @param length The length of the portion to extract.
22
* @return On success, the new buffer or string object containing the extracted portion. On failure, `NULL` and `errno`
23
* is set.
24
*/
25
aml_object_t
*
aml_mid
(
aml_state_t
* state,
aml_object_t
* bufferString,
aml_uint_t
index,
aml_uint_t
length);
aml.h
aml_uint_t
uint64_t aml_uint_t
AML Integer type.
Definition
integer.h:20
aml_mid
aml_object_t * aml_mid(aml_state_t *state, aml_object_t *bufferString, aml_uint_t index, aml_uint_t length)
Performs a "mid" operation, extracting a portion of a buffer or string.
Definition
mid.c:3
aml_object_t
ACPI object.
Definition
object.h:447
aml_state_t
AML State.
Definition
state.h:25
include
modules
acpi
aml
runtime
mid.h
Generated on Thu Dec 11 2025 04:34:51 for PatchworkOS by
1.9.8