Lines Matching refs:mode
58 pub fn update_mode(&mut self, mode: FileMode) { in update_mode()
60 pdata.set_mode(mode); in update_mode()
203 mode: RwLock<FileMode>, field
218 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, SystemError> { in new()
230 mode: RwLock::new(mode), in new()
236 f.inode.open(f.private_data.lock(), &mode)?; in new()
420 if *self.mode.read() == FileMode::O_WRONLY { in readable()
431 if *self.mode.read() == FileMode::O_RDONLY { in writeable()
505 mode: RwLock::new(self.mode()), in try_clone()
514 .open(res.private_data.lock(), &res.mode()) in try_clone()
531 pub fn mode(&self) -> FileMode { in mode() method
532 return *self.mode.read(); in mode()
538 return self.mode().contains(FileMode::O_CLOEXEC); in close_on_exec()
544 let mut mode_guard = self.mode.write(); in set_close_on_exec()
552 pub fn set_mode(&self, mode: FileMode) -> Result<(), SystemError> { in set_mode()
557 *self.mode.write() = mode; in set_mode()
558 self.private_data.lock().update_mode(mode); in set_mode()