/DragonOS/kernel/src/bpf/prog/ |
H A D | mod.rs | 10 use crate::filesystem::vfs::{FilePrivateData, FileSystem, FileType, IndexNode, Metadata}; 48 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() argument 51 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() 59 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 69 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | null_dev.rs | 5 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, 77 _data: SpinLockGuard<FilePrivateData>, in open() argument 83 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 117 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 128 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
H A D | zero_dev.rs | 5 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, 77 _data: SpinLockGuard<FilePrivateData>, in open() argument 83 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 117 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 136 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
H A D | mod.rs | 10 FilePrivateData, FileSystem, FileType, FsInfo, IndexNode, Magic, Metadata, SuperBlock, 400 _data: SpinLockGuard<FilePrivateData>, in open() argument 406 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 493 _private_data: &FilePrivateData, in ioctl() argument 542 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 554 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 7 FilePrivateData, FileSystem, FileType, IndexNode, Metadata, 95 _data: SpinLockGuard<FilePrivateData>, in open() argument 102 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 141 _private_data: &FilePrivateData, in ioctl() argument 167 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 178 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
H A D | vcpu_dev.rs | 7 core::generate_inode_id, file::FileMode, FilePrivateData, FileSystem, FileType, IndexNode, 103 _data: SpinLockGuard<FilePrivateData>, in open() argument 110 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 149 _private_data: &FilePrivateData, in ioctl() argument 203 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 214 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
H A D | vm_dev.rs | 7 FilePrivateData, FileSystem, FileType, IndexNode, Metadata, 101 _data: SpinLockGuard<FilePrivateData>, in open() argument 108 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 147 _private_data: &FilePrivateData, in ioctl() argument 199 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 210 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 3 core::generate_inode_id, file::FileMode, syscall::ModeType, FilePrivateData, FileSystem, 66 pub fn poll(&self, private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() 69 let mode = if let FilePrivateData::Pipefs(PipeFsPrivateData { mode }) = private_data { in poll() 189 data_guard: SpinLockGuard<FilePrivateData>, in read_at() argument 195 if let FilePrivateData::Pipefs(pdata) = &data { in read_at() 278 mut data: SpinLockGuard<FilePrivateData>, in open() argument 294 *data = FilePrivateData::Pipefs(PipeFsPrivateData { mode: *mode }); in open() 307 fn close(&self, data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 309 if let FilePrivateData::Pipefs(pipe_data) = &*data { in close() 346 data: SpinLockGuard<FilePrivateData>, in write_at() argument [all …]
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 29 vfs::{file::FileMode, syscall::ModeType, FilePrivateData, FileType, IndexNode, Metadata}, 138 mut data: SpinLockGuard<FilePrivateData>, in open() argument 141 if let FilePrivateData::Tty(_) = &*data { in open() 155 *data = FilePrivateData::Tty(TtyFilePrivateData { in open() 190 data: SpinLockGuard<FilePrivateData>, in read_at() argument 192 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in read_at() 232 data: SpinLockGuard<FilePrivateData>, in write_at() argument 235 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in write_at() 301 fn close(&self, data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 302 let (tty, _mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in close() [all …]
|
/DragonOS/kernel/src/filesystem/ |
H A D | eventfd.rs | 3 use crate::filesystem::vfs::{FilePrivateData, FileSystem, FileType, IndexNode, Metadata}; 90 _data: SpinLockGuard<FilePrivateData>, in open() argument 96 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 113 data_guard: SpinLockGuard<FilePrivateData>, in read_at() argument 167 data: SpinLockGuard<FilePrivateData>, in write_at() argument 204 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() 230 _data: &FilePrivateData, in kernel_ioctl() argument
|
/DragonOS/kernel/src/perf/ |
H A D | mod.rs | 8 FilePrivateData, FileSystem, FileType, FsInfo, IndexNode, Metadata, SuperBlock, 110 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() argument 113 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() 121 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 131 _data: SpinLockGuard<FilePrivateData>, in write_at() argument 136 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize> { in poll() 153 fn ioctl(&self, cmd: u32, data: usize, _private_data: &FilePrivateData) -> Result<usize> { in ioctl() 182 _data: &FilePrivateData, in kernel_ioctl() argument
|
H A D | kprobe.rs | 9 use crate::filesystem::vfs::{FilePrivateData, FileSystem, IndexNode}; 91 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 101 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 25 core::generate_inode_id, file::FileMode, syscall::ModeType, FilePrivateData, 122 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 132 _data: SpinLockGuard<FilePrivateData>, in write_at() argument 139 _data: SpinLockGuard<FilePrivateData>, in open() argument 145 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 32 core::generate_inode_id, FilePrivateData, FileSystem, FsInfo, IndexNode, Metadata, 148 _data: SpinLockGuard<FilePrivateData>, in open() argument 161 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 171 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 181 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 33 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS}; 137 _data: SpinLockGuard<FilePrivateData>, in open() argument 148 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 167 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 184 _data: SpinLockGuard<FilePrivateData>, in write_at() argument 190 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() 356 _private_data: &FilePrivateData, in ioctl() argument 365 _data: &FilePrivateData, in kernel_ioctl() argument 695 SpinLock::new(FilePrivateData::Unused).lock(), in do_lookup_follow_symlink()
|
H A D | mount.rs | 30 FilePrivateData, FileSystem, FileType, IndexNode, InodeId, Magic, SuperBlock, 248 data: SpinLockGuard<FilePrivateData>, in open() argument 254 fn close(&self, data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 284 data: SpinLockGuard<FilePrivateData>, in read_at() argument 294 data: SpinLockGuard<FilePrivateData>, in write_at() argument 415 private_data: &FilePrivateData, in ioctl() argument 424 data: &FilePrivateData, in kernel_ioctl() argument 514 fn poll(&self, private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll()
|
H A D | file.rs | 36 pub enum FilePrivateData { enum 51 impl Default for FilePrivateData { implementation 57 impl FilePrivateData { impl 59 if let FilePrivateData::Pipefs(pdata) = self { in update_mode() 208 pub private_data: SpinLock<FilePrivateData>, 233 private_data: SpinLock::new(FilePrivateData::default()), in new()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | mod.rs | 18 FilePrivateData, IndexNode, Metadata, 162 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 172 _data: SpinLockGuard<FilePrivateData>, in write_at() argument 177 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() 198 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 227 _data: SpinLockGuard<FilePrivateData>, in open() argument 260 ep_file.private_data = SpinLock::new(FilePrivateData::EPoll(EPollPrivateData { epoll })); in do_create_epoll() 331 if let FilePrivateData::EPoll(epoll_data) = &*ep_file.private_data.lock() { in do_epoll_ctl() 422 if let FilePrivateData::EPoll(epoll_data) = &*ep_file.private_data.lock() { in do_epoll_wait() 595 if let FilePrivateData::EPoll(_) = *file.private_data.lock() { in is_epoll_file()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 32 file::FileMode, syscall::ModeType, FilePrivateData, FileSystem, FileType, IndexNode, 398 _data: SpinLockGuard<FilePrivateData>, in open() argument 404 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 412 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 423 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/bpf/map/ |
H A D | mod.rs | 13 use crate::filesystem::vfs::{FilePrivateData, FileSystem, FileType, IndexNode, Metadata}; 135 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() argument 138 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() 146 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 156 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | copy_up.rs | 22 let lock = SpinLock::new(crate::filesystem::vfs::FilePrivateData::Unused); in copy_up()
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 25 core::generate_inode_id, file::FileMode, syscall::ModeType, FilePrivateData, FileSystem, 160 _data: SpinLockGuard<FilePrivateData>, in open() argument 172 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 282 _private_data: &FilePrivateData, in ioctl() argument 323 _data: SpinLockGuard<FilePrivateData>, in read_at() argument 367 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 32 file::{FileMode, FilePrivateData}, 454 mut data: SpinLockGuard<FilePrivateData>, in open() argument 473 *data = FilePrivateData::Procfs(private_data); in open() 480 fn close(&self, mut data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 487 *data = FilePrivateData::Procfs(ProcfsFilePrivateData::new()); in close() 497 data: SpinLockGuard<FilePrivateData>, in read_at() argument 512 FilePrivateData::Procfs(p) => p.clone(), in read_at() 550 _data: SpinLockGuard<FilePrivateData>, in write_at() argument
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 14 file::FileMode, syscall::ModeType, FilePrivateData, FileType, MountFS, ROOT_INODE, 250 mut data: SpinLockGuard<FilePrivateData>, in ptmx_open() argument 269 *data = FilePrivateData::Tty(TtyFilePrivateData { in ptmx_open()
|
/DragonOS/kernel/src/net/socket/ |
H A D | mod.rs | 21 file::FileMode, syscall::ModeType, FilePrivateData, FileSystem, FileType, IndexNode, 339 _data: SpinLockGuard<FilePrivateData>, in open() argument 346 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() 355 data: SpinLockGuard<FilePrivateData>, in read_at() argument 366 data: SpinLockGuard<FilePrivateData>, in write_at() argument 372 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll()
|