fn can_perform_op_on_fd(&self, fd: usize, op: u16) -> Result<&OpenFileInfo> {
        let file_info = self.get_fd(fd)?;
        if !file_info.permission(op) {
            return Err(Error::new(EPERM));
        }
        Ok(file_info)
    }
/// Checks to see if the op (MODE_READ, MODE_WRITE) can be performed on the open file
/// descriptor - Will return the open file info if successful, and error if the file
/// descriptor is invalid, or the permission is denied.
Checks to see if the op (MODE_READ, MODE_WRITE) can be performed on the open file
descriptor - Will return the open file info if successful, and error if the file
descriptor is invalid, or the permission is denied.
Checks to see if the op ( MODE_READ MODE_WRITE ) can be performed on the open file descriptor - Will return the open file info if successful and error if the file descriptor is invalid or the permission is denied .
fn can_perform_op_on_fd(&self, fd: usize, op: u16) -> Result<&OpenFileInfo> {
        let file_info = self.get_fd(fd)?;
        if !file_info.permission(op) {
            return Err(Error::new(EPERM));
        }
        Ok(file_info)
    }
fn can_perform_op_on_fd ( & self , fd : usize , op : u16 ) -> Result < & OpenFileInfo > { let file_info = self . get_fd ( fd ) ? ; if ! file_info . permission ( op ) { return Err ( Error :: new ( EPERM ) ) ; } Ok ( file_info ) }
Checks to see if the op (MODE_READ, MODE_WRITE) can be performed on the open file
descriptor - Will return the open file info if successful, and error if the file
descriptor is invalid, or the permission is denied.
Checks to see if the op ( MODE_READ MODE_WRITE ) can be performed on the open file descriptor - Will return the open file info if successful and error if the file descriptor is invalid or the permission is denied .
&self
fd
usize
op
u16
&self
fd
usize
op
u16