Home
last modified time | relevance | path

Searched refs:FilePrivateData (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahci_inode.rs4 core::generate_inode_id, make_rawdev, FilePrivateData, FileSystem, FileType, IndexNode,
78 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
82 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
120 data: &mut FilePrivateData, in read_at() argument
126 if let FilePrivateData::Unused = data { in read_at()
139 data: &mut FilePrivateData, in write_at() argument
145 if let FilePrivateData::Unused = data { in write_at()
/DragonOS-0.1.7/kernel/src/filesystem/devfs/
Dnull_dev.rs4 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, PollStatus,
72 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
114 _data: &mut FilePrivateData, in read_at() argument
133 _data: &mut FilePrivateData, in write_at() argument
Dzero_dev.rs4 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, PollStatus,
72 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
114 _data: &mut FilePrivateData, in read_at() argument
133 _data: &mut FilePrivateData, in write_at() argument
Dmod.rs345 _data: &mut super::vfs::FilePrivateData, in open() argument
351 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close()
477 _data: &mut super::vfs::file::FilePrivateData, in read_at() argument
489 _data: &mut super::vfs::file::FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/driver/tty/
Dtty_device.rs10 vfs::{file::FileMode, FilePrivateData, FileType, IndexNode, Metadata, ROOT_INODE},
62 private_data: &'a mut FilePrivateData, in verify_file_private_data() argument
64 if let FilePrivateData::Tty(t) = private_data { in verify_file_private_data()
120 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument
138 *data = FilePrivateData::Tty(p); in open()
147 data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument
181 data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
232 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
/DragonOS-0.1.7/kernel/src/ipc/
Dpipe.rs5 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata,
80 _data: &mut FilePrivateData, in read_at() argument
136 _data: &mut FilePrivateData, in open() argument
150 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
159 _data: &mut FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs98 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument
118 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
125 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument
140 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dmod.rs16 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS};
92 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
101 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
120 _data: &mut FilePrivateData, in read_at() argument
137 _data: &mut FilePrivateData, in write_at() argument
422 let len = inode.read_at(0, 256, &mut content, &mut FilePrivateData::Unused)?; in lookup_follow_symlink()
Dmount.rs10 use super::{file::FileMode, FilePrivateData, FileSystem, FileType, IndexNode, InodeId};
126 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument
130 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
155 data: &mut FilePrivateData, in read_at() argument
165 data: &mut FilePrivateData, in write_at() argument
Dfile.rs15 pub enum FilePrivateData { enum
24 impl Default for FilePrivateData { implementation
98 pub private_data: FilePrivateData,
114 private_data: FilePrivateData::default(), in new()
/DragonOS-0.1.7/kernel/src/filesystem/procfs/
Dmod.rs25 file::{FileMode, FilePrivateData},
321 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
337 *data = FilePrivateData::Procfs(private_data); in open()
344 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
352 FilePrivateData::Procfs(p) => p, in close()
367 data: &mut FilePrivateData, in read_at() argument
382 FilePrivateData::Procfs(p) => p, in read_at()
414 _data: &mut FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/
Dmod.rs156 _data: &mut super::vfs::FilePrivateData, in open() argument
162 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close()
171 _data: &mut super::vfs::FilePrivateData, in read_at() argument
181 _data: &mut super::vfs::FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/filesystem/ramfs/
Dmod.rs18 file::FilePrivateData, FileSystem, FsInfo, IndexNode, InodeId, Metadata, PollStatus,
122 _data: &mut FilePrivateData, in read_at() argument
154 _data: &mut FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/net/
Dsocket.rs1005 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument
1013 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument
1023 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument
1033 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
/DragonOS-0.1.7/kernel/src/filesystem/fat/
Dfs.rs14 file::{FileMode, FilePrivateData},
1356 _data: &mut FilePrivateData, in read_at() argument
1384 _data: &mut FilePrivateData, in write_at() argument
1513 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
1517 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()