Home
last modified time | relevance | path

Searched refs:private_data (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dfile.rs98 pub private_data: FilePrivateData, field
114 private_data: FilePrivateData::default(), in new()
117 f.inode.open(&mut f.private_data, &mode)?; in new()
143 .read_at(self.offset, len, buf, &mut self.private_data)?; in read()
169 .write_at(self.offset, len, buf, &mut self.private_data)?; in write()
302 private_data: self.private_data.clone(), in try_clone()
305 if self.inode.open(&mut res.private_data, &res.mode).is_err() { in try_clone()
368 let r: Result<(), SystemError> = self.inode.close(&mut self.private_data); in drop()
DVFS.h108 void *private_data; member
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs34 private_data: RwLock<TtyDevicePrivateData>, field
51 private_data: TtyDevicePrivateData::new(name), in new()
62 private_data: &'a mut FilePrivateData, in verify_file_private_data()
64 if let FilePrivateData::Tty(t) = private_data { in verify_file_private_data()
73 return self.private_data.read().name.clone(); in name()
229 return Ok(self.private_data.read().metadata.clone()); in metadata()
/DragonOS-0.1.8/kernel/src/common/
Dblk_types.h85 void *private_data; member
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs332 let mut private_data = ProcfsFilePrivateData::new(); in open() localVariable
335 ProcFileType::ProcStatus => inode.open_status(&mut private_data)?, in open()
340 *data = FilePrivateData::Procfs(private_data); in open()
354 let private_data = match data { in close() localVariable
361 drop(private_data); in close()
384 let private_data = match data { in read_at() localVariable
393 ProcFileType::ProcStatus => return inode.read_status(offset, len, buf, private_data), in read_at()