Lines Matching refs:guard
249 let guard: SpinLockGuard<DevFSInode> = self.0.lock(); in add_dir() localVariable
251 if guard.children.contains_key(name) { in add_dir()
255 match self.do_create_with_data(guard, name, FileType::Dir, 0o755 as u32, 0) { in add_dir()
290 mut guard: SpinLockGuard<DevFSInode>, in do_create_with_data()
296 if guard.metadata.file_type != FileType::Dir { in do_create_with_data()
301 if guard.children.contains_key(_name) { in do_create_with_data()
307 parent: guard.self_ref.clone(), in do_create_with_data()
326 fs: guard.fs.clone(), in do_create_with_data()
333 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
363 let guard: SpinLockGuard<DevFSInode> = self.0.lock(); in create_with_data() localVariable
365 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data()