Home
last modified time | relevance | path

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

/DragonOS-0.1.8/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.8/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
125 _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.8/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.8/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.8/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.8/kernel/src/filesystem/vfs/
Dmod.rs17 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS};
93 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
102 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
121 _data: &mut FilePrivateData, in read_at() argument
138 _data: &mut FilePrivateData, in write_at() argument
426 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.8/kernel/src/filesystem/procfs/
Dmod.rs26 file::{FileMode, FilePrivateData},
324 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
340 *data = FilePrivateData::Procfs(private_data); in open()
347 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
355 FilePrivateData::Procfs(p) => p, in close()
370 data: &mut FilePrivateData, in read_at() argument
385 FilePrivateData::Procfs(p) => p, in read_at()
417 _data: &mut FilePrivateData, in write_at() argument
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs158 _data: &mut super::vfs::FilePrivateData, in open() argument
164 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close()
173 _data: &mut super::vfs::FilePrivateData, in read_at() argument
183 _data: &mut super::vfs::FilePrivateData, in write_at() argument
/DragonOS-0.1.8/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.8/kernel/src/net/
Dsocket.rs1139 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument
1147 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument
1161 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument
1171 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs14 file::{FileMode, FilePrivateData},
1360 _data: &mut FilePrivateData, in read_at() argument
1388 _data: &mut FilePrivateData, in write_at() argument
1555 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
1559 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()