/// Creates a memory allocation device file at the provided path.
Creates a memory allocation device file at the provided path.
Creates a memory allocation device file at the provided path .
fn create_device_file(task: &Task, device_path: FsString) -> Result<(), Errno> {
    let (device_parent, device_basename) =
        task.lookup_parent_at(FdNumber::AT_FDCWD, &device_path)?;
    let mode = task.fs.apply_umask(mode!(IFREG, 0o765));
    let _device_entry = device_parent.entry.add_node_ops(device_basename, mode, DmaBufNode {})?;
    Ok(())
}
fn create_device_file ( task : & Task , device_path : FsString ) -> Result < ( ) , Errno > { let ( device_parent , device_basename ) = task . lookup_parent_at ( FdNumber :: AT_FDCWD , & device_path ) ? ; let mode = task . fs . apply_umask ( mode ! ( IFREG 0o765 ) ) ; let _device_entry = device_parent . entry . add_node_ops ( device_basename , mode , DmaBufNode { } ) ? ; Ok ( ( ) ) }
Creates a memory allocation device file at the provided path.
Creates a memory allocation device file at the provided path .
task
&Task
device_path
FsString