/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 28 mode: FileMode, field 32 pub fn new(mode: FileMode) -> Self { in new() 33 return PipeFsPrivateData { mode }; in new() 36 pub fn set_mode(&mut self, mode: FileMode) { in set_mode() 37 self.mode = mode; in set_mode() 69 let mode = if let FilePrivateData::Pipefs(PipeFsPrivateData { mode }) = private_data { in poll() localVariable 70 mode in poll() 75 if mode.contains(FileMode::O_RDONLY) { in poll() 87 if mode.contains(FileMode::O_WRONLY) { in poll() 146 mode: ModeType::from_bits_truncate(0o666), in new() [all …]
|
H A D | shm.rs | 184 mode: shmflg & ShmFlags::from_bits_truncate(ModeType::S_IRWXUGO.bits()), in add() 256 let mode = kernel_shm.kern_ipc_perm.mode.bits(); in shm_stat() localVariable 258 let shm_perm = PosixIpcPerm::new(key, 0, 0, 0, 0, mode); in shm_stat() 464 self.kern_ipc_perm.mode = ShmFlags::from_bits_truncate(shm_id_ds.mode()); in copy_from() 470 self.kern_ipc_perm.mode.insert(shmflg); in set_mode() 472 self.kern_ipc_perm.mode.remove(shmflg); in set_mode() 495 mode: ShmFlags, field 617 pub fn mode(&self) -> u32 { in mode() method 618 self.shm_perm.mode in mode() 637 mode: u32, field [all …]
|
/DragonOS/kernel/src/driver/net/ |
H A D | sysfs.rs | 80 return Some(attr.mode()); in is_visible() 97 fn mode(&self) -> ModeType { in mode() method 124 fn mode(&self) -> ModeType { in mode() method 146 fn mode(&self) -> ModeType { in mode() method 168 fn mode(&self) -> ModeType { in mode() method 194 fn mode(&self) -> ModeType { in mode() method 216 fn mode(&self) -> ModeType { in mode() method 238 fn mode(&self) -> ModeType { in mode() method 265 fn mode(&self) -> ModeType { in mode() method 294 fn mode(&self) -> ModeType { in mode() method [all …]
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | group.rs | 176 let mut mode = attr.mode(); in group_create_files() localVariable 183 mode = mt; in group_create_files() 185 if mode.is_empty() { in group_create_files() 190 if unlikely((mode.bits() & (!0o644)) != 0) { in group_create_files() 194 mode = mode in group_create_files() 198 mode = ModeType::from_bits_truncate(mode.bits() & 0o644); in group_create_files() 199 e = sysfs_instance().add_file_with_mode(&parent, *attr, mode); in group_create_files()
|
H A D | file.rs | 111 return self.add_file_with_mode(&inode, attr, attr.mode()); in create_file() 119 mode: ModeType, in add_file_with_mode() 157 mode.bitand(ModeType::from_bits_truncate(0o777)), in add_file_with_mode() 210 return self.add_bin_file_with_mode(&inode, attr, attr.mode()); in create_bin_file() 237 mode: ModeType, in add_bin_file_with_mode() 269 mode.bitand(ModeType::from_bits_truncate(0o777)), in add_bin_file_with_mode()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 102 mode: ModeType, field 129 mode: ModeType { bits: 0 }, in new() 389 pub mode: u64, field 395 pub fn new(flags: u64, mode: u64, resolve: u64) -> Self { in new() 398 mode, in new() 408 pub mode: ModeType, field 413 pub fn new(mut o_flags: FileMode, mut mode: ModeType, resolve: OpenHowResolve) -> Self { in new() 415 mode = ModeType::empty(); in new() 424 mode, in new() 433 let mode = ModeType::from_bits_truncate(posix_open_how.mode as u32); in from() localVariable [all …]
|
H A D | file.rs | 58 pub fn update_mode(&mut self, mode: FileMode) { in update_mode() 60 pdata.set_mode(mode); in update_mode() 203 mode: RwLock<FileMode>, field 218 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, SystemError> { in new() 230 mode: RwLock::new(mode), in new() 236 f.inode.open(f.private_data.lock(), &mode)?; in new() 420 if *self.mode.read() == FileMode::O_WRONLY { in readable() 431 if *self.mode.read() == FileMode::O_RDONLY { in writeable() 505 mode: RwLock::new(self.mode()), in try_clone() 514 .open(res.private_data.lock(), &res.mode()) in try_clone() [all …]
|
H A D | mod.rs | 237 mode: ModeType, in create() 240 return self.create_with_data(name, file_type, mode, 0); in create() 519 fn mkdir(&self, name: &str, mode: ModeType) -> Result<Arc<dyn IndexNode>, SystemError> { in mkdir() 528 Err(SystemError::ENOENT) => self.create(name, FileType::Dir, mode), in mkdir() 754 pub mode: ModeType, field 781 mode: ModeType::empty(), in default() 906 pub fn new(file_type: FileType, mode: ModeType) -> Self { in new() 917 mode, in new()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbsysfs.rs | 56 fn mode(&self) -> ModeType { in mode() method 80 fn mode(&self) -> ModeType { in mode() method 110 fn mode(&self) -> ModeType { in mode() method 133 fn mode(&self) -> ModeType { in mode() method 160 fn mode(&self) -> ModeType { in mode() method 187 fn mode(&self) -> ModeType { in mode() method 216 fn mode(&self) -> ModeType { in mode() method 248 fn mode(&self) -> ModeType { in mode() method 272 fn mode(&self) -> ModeType { in mode() method 302 fn mode(&self) -> ModeType { in mode() method
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | apic_timer.rs | 169 mode: LocalApicTimerMode, field 193 mode: LocalApicTimerMode::Periodic, in new() 214 fn init(&mut self, mode: LocalApicTimerMode, initial_count: u64, divisor: u32) { in init() 217 match mode { in init() 229 self.mode = LocalApicTimerMode::Periodic; in install_periodic_mode() 239 fn setup_lvt(&mut self, vector: u8, mask: bool, mode: LocalApicTimerMode) { in setup_lvt() 240 let mode: u32 = mode as u32; in setup_lvt() localVariable 241 let data = (mode << 17) | (vector as u32) | (if mask { 1 << 16 } else { 0 }); in setup_lvt()
|
H A D | mod.rs | 198 pub fn set_delivery_mode(&mut self, mode: DeliveryMode) -> Result<(), SystemError> { in set_delivery_mode() 207 self.data |= ((mode as u32) & 0x7) << 8; in set_delivery_mode() 310 pub fn set_timer_mode(&mut self, mode: LocalApicTimerMode) -> Result<(), SystemError> { in set_timer_mode() 314 match mode { in set_timer_mode() 337 let mode = (self.data >> 17) & 0b11; in timer_mode() localVariable 338 match mode { in timer_mode()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | attr.rs | 43 return Some(attr.mode()); in is_visible() 51 fn mode(&self) -> ModeType { in mode() method 82 fn mode(&self) -> ModeType { in mode() method 113 fn mode(&self) -> ModeType { in mode() method 144 fn mode(&self) -> ModeType { in mode() method 175 fn mode(&self) -> ModeType { in mode() method 206 fn mode(&self) -> ModeType { in mode() method 237 fn mode(&self) -> ModeType { in mode() method 272 fn mode(&self) -> ModeType { in mode() method
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 139 mode: &crate::filesystem::vfs::file::FileMode, in open() 145 return ptmx_open(data, mode); in open() 157 mode: *mode, in open() 170 if !(mode.contains(FileMode::O_NOCTTY) && dev_num == DeviceNumber::new(Major::TTY_MAJOR, 0) in open() 192 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in read_at() 193 (tty_priv.tty(), tty_priv.mode) in read_at() 205 size = ld.read(tty.clone(), buf, size, &mut cookie, offset, mode)?; in read_at() 235 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in write_at() 236 (tty_priv.tty(), tty_priv.mode) in write_at() 257 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at() [all …]
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 86 Some(attr.mode()) in is_visible() 143 fn mode(&self) -> ModeType { in mode() method 174 fn mode(&self) -> ModeType { in mode() method 200 fn mode(&self) -> ModeType { in mode() method 231 fn mode(&self) -> ModeType { in mode() method 257 fn mode(&self) -> ModeType { in mode() method 287 fn mode(&self) -> ModeType { in mode() method
|
/DragonOS/tools/ |
H A D | list_contributors.py | 24 if args.mode == 'all': 26 elif args.mode == 'short':
|
H A D | .gdbinit | 3 set follow-fork-mode child
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 90 mode: ModeType::from_bits_truncate(0o777), in new() 284 inode.metadata.mode = metadata.mode; in set_metadata() 305 mode: ModeType, in create_with_data() 336 mode, in create_with_data() 567 mode: ModeType, in mknod() 576 if unlikely(mode.contains(ModeType::S_IFREG)) { in mknod() 578 return self.create(filename, FileType::File, mode); in mknod() 598 mode, in mknod() 611 if mode.contains(ModeType::S_IFIFO) { in mknod() 617 } else if mode.contains(ModeType::S_IFBLK) { in mknod() [all …]
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | null_dev.rs | 49 mode: ModeType::from_bits_truncate(0o666), in new() 104 inode.metadata.mode = metadata.mode; in set_metadata()
|
H A D | mod.rs | 259 pub fn new(dev_type_: FileType, mode: ModeType, data_: usize) -> Self { in new() 260 return Self::new_with_parent(Weak::default(), dev_type_, mode, data_); in new() 266 mode: ModeType, in new_with_parent() 283 mode, in new_with_parent() 347 mode: ModeType, in do_create_with_data() 374 mode, in do_create_with_data() 414 mode: ModeType, in create_with_data() 420 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data() 529 inode.metadata.mode = metadata.mode; in set_metadata()
|
H A D | zero_dev.rs | 49 mode: ModeType::from_bits_truncate(0o666), in new() 104 inode.metadata.mode = metadata.mode; in set_metadata()
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 110 let mode = args[2] as u32; in handle() localVariable 112 Self::open(path, flags, mode, true) in handle() 150 let mode = args[3] as u32; in handle() localVariable 152 Self::openat(dirfd, path, flags, mode, true) in handle() 307 let mode = args[1]; in handle() localVariable 309 Self::mkdir(path, mode) in handle() 315 let mode = args[2]; in handle() localVariable 316 Self::mkdir_at(dirfd, path, mode) in handle() 978 let mode = args[1] as u32; in handle() localVariable 979 Self::access(pathname, mode) in handle() [all …]
|
/DragonOS/user/dadk/config/ |
H A D | test_mount_1_0_0.dadk | 4 "description": "to test user mode mount",
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 67 mode: filesystem::vfs::syscall::ModeType::S_IALLUGO, in new() 123 inode.metadata.mode = metadata.mode; in set_metadata()
|
H A D | vcpu_dev.rs | 78 mode: filesystem::vfs::syscall::ModeType::S_IALLUGO, in new() 131 inode.metadata.mode = metadata.mode; in set_metadata()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 284 return Some(attr.mode()); in is_visible() 296 fn mode(&self) -> ModeType { in mode() method 325 fn mode(&self) -> ModeType { in mode() method 349 fn mode(&self) -> ModeType { in mode() method 372 fn mode(&self) -> ModeType { in mode() method
|