pub struct Subsystem<Data> { /* private fields */ }
Expand description
A configfs subsystem.
This is the top level entrypoint for a configfs hierarchy. To register with configfs, embed a field of this type into your kernel module struct.
Implementations§
source§impl<Data> Subsystem<Data>
impl<Data> Subsystem<Data>
sourcepub fn new(
name: &'static CStr,
item_type: &'static ItemType<Subsystem<Data>, Data>,
data: impl PinInit<Data, Error>
) -> impl PinInit<Self, Error>
pub fn new( name: &'static CStr, item_type: &'static ItemType<Subsystem<Data>, Data>, data: impl PinInit<Data, Error> ) -> impl PinInit<Self, Error>
Create an initializer for a Subsystem
.
The subsystem will appear in configfs as a directory name given by
name
. The attributes available in directory are specified by
item_type
.
Trait Implementations§
source§impl<Data> HasGroup<Data> for Subsystem<Data>
impl<Data> HasGroup<Data> for Subsystem<Data>
source§unsafe fn group(this: *const Self) -> *const config_group
unsafe fn group(this: *const Self) -> *const config_group
source§unsafe fn container_of(group: *const config_group) -> *const Self
unsafe fn container_of(group: *const config_group) -> *const Self
source§impl<Data> HasPinData for Subsystem<Data>
impl<Data> HasPinData for Subsystem<Data>
type PinData = __ThePinData<Data>
unsafe fn __pin_data() -> Self::PinData
source§impl<Data> PinnedDrop for Subsystem<Data>
impl<Data> PinnedDrop for Subsystem<Data>
impl<Data> Send for Subsystem<Data>
impl<Data> Sync for Subsystem<Data>
Auto Trait Implementations§
impl<Data> !Freeze for Subsystem<Data>
impl<Data> !RefUnwindSafe for Subsystem<Data>
impl<Data> UnwindSafe for Subsystem<Data>where
Data: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more