pub fn new_with_common_devices() -> Self {
        let mut registry = Self::new();
        registry.register_chrdev(DevNull).unwrap();
        registry.register_chrdev(DevZero).unwrap();
        registry.register_chrdev(DevFull).unwrap();
        registry.register_chrdev(DevRandom).unwrap();
        registry.register_chrdev(DevURandom).unwrap();
        registry.register_chrdev(DevKmsg).unwrap();
        registry
    }
/// Creates a `DeviceRegistry` and populates it with common drivers such as /dev/null.
Creates a `DeviceRegistry` and populates it with common drivers such as /dev/null.
Creates a ` DeviceRegistry ` and populates it with common drivers such as / dev / null .
pub fn new_with_common_devices() -> Self {
        let mut registry = Self::new();
        registry.register_chrdev(DevNull).unwrap();
        registry.register_chrdev(DevZero).unwrap();
        registry.register_chrdev(DevFull).unwrap();
        registry.register_chrdev(DevRandom).unwrap();
        registry.register_chrdev(DevURandom).unwrap();
        registry.register_chrdev(DevKmsg).unwrap();
        registry
    }
pub fn new_with_common_devices ( ) -> Self { let mut registry = Self :: new ( ) ; registry . register_chrdev ( DevNull ) . unwrap ( ) ; registry . register_chrdev ( DevZero ) . unwrap ( ) ; registry . register_chrdev ( DevFull ) . unwrap ( ) ; registry . register_chrdev ( DevRandom ) . unwrap ( ) ; registry . register_chrdev ( DevURandom ) . unwrap ( ) ; registry . register_chrdev ( DevKmsg ) . unwrap ( ) ; registry }
Creates a `DeviceRegistry` and populates it with common drivers such as /dev/null.
Creates a ` DeviceRegistry ` and populates it with common drivers such as / dev / null .