pub struct DriverManager {
inner: NullLock<DriverManagerInner>,
}Expand description
Provides device driver management functions.
Fields§
§inner: NullLock<DriverManagerInner>Implementations§
Source§impl DriverManager
impl DriverManager
Sourcepub fn register_driver(&self, descriptor: DeviceDriverDescriptor)
pub fn register_driver(&self, descriptor: DeviceDriverDescriptor)
Register a device driver with the kernel.
Sourcefn for_each_descriptor<'a>(&'a self, f: impl FnMut(&'a DeviceDriverDescriptor))
fn for_each_descriptor<'a>(&'a self, f: impl FnMut(&'a DeviceDriverDescriptor))
Helper for iterating over registered drivers.
Sourcepub unsafe fn init_drivers(&self)
pub unsafe fn init_drivers(&self)
Auto Trait Implementations§
impl !Freeze for DriverManager
impl !RefUnwindSafe for DriverManager
impl Send for DriverManager
impl Sync for DriverManager
impl Unpin for DriverManager
impl !UnwindSafe for DriverManager
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