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> 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