Module data_model::flexible_array
source · Expand description
A wrapper for structures that contain flexible arrays.
The following code provides generic helpers for creating and accessing flexible array structs. A complete definition of flexible array structs is found in the ISO 9899 specification http://www.iso-9899.info/n1570.html. A flexible array struct is of the form:
ⓘ
#[repr(C)]
struct T {
some_data: u32,
nents: u32,
entries: __IncompleteArrayField<S>,
}
where:
T
is the flexible array struct typeS
is the flexible array typenents
is the flexible array lengthentries
is the flexible array member
These structures are used by the kernel API.
Structs§
Traits§
- A collection of methods that are required by the FlexibleArrayWrapper type.
Functions§
- The kernel API has many structs that resemble the following
Foo
structure: