simple_device_ops

Function simple_device_ops 

Source
pub fn simple_device_ops<T: Default + FileOps + 'static>(
    _locked: &mut Locked<FileOpsCore>,
    _current_task: &CurrentTask,
    _id: DeviceType,
    _node: &NamespaceNode,
    _flags: OpenFlags,
) -> Result<Box<dyn FileOps>, Errno>
Expand description

A simple DeviceOps function for any device that implements FileOps + Default.