Home
last modified time | relevance | path

Searched refs:ModeType (Results 1 – 25 of 38) sorted by relevance

12

/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dfbsysfs.rs8 vfs::syscall::ModeType,
42 ) -> Option<ModeType> { in is_visible() argument
55 fn mode(&self) -> ModeType { in mode() argument
56 ModeType::S_IRUGO in mode()
79 fn mode(&self) -> ModeType { in mode() argument
80 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
109 fn mode(&self) -> ModeType { in mode() argument
110 ModeType::S_IWUSR in mode()
132 fn mode(&self) -> ModeType { in mode() argument
133 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
[all …]
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/
Dmod.rs7 vfs::{syscall::ModeType, FileSystem},
110 fn is_visible(&self, kobj: Arc<dyn KObject>, attr: &'static dyn Attribute) -> Option<ModeType>; in is_visible() argument
114 pub const SYSFS_ATTR_MODE_RO: ModeType = ModeType::from_bits_truncate(0o444);
116 pub const SYSFS_ATTR_MODE_WO: ModeType = ModeType::from_bits_truncate(0o200);
118 pub const SYSFS_ATTR_MODE_RW: ModeType = ModeType::from_bits_truncate(0o644);
123 fn mode(&self) -> ModeType; in mode() argument
Dgroup.rs11 vfs::{syscall::ModeType, IndexNode},
83 ModeType::S_IRWXU | ModeType::S_IRUGO | ModeType::S_IXUGO, in do_create_group()
199 mode = ModeType::from_bits_truncate(mode.bits() & 0o644); in group_create_files()
Ddir.rs13 vfs::syscall::ModeType,
69 ModeType::from_bits_truncate(0o755), in create_dir()
Dfile.rs17 vfs::{syscall::ModeType, PollStatus},
119 mode: ModeType, in add_file_with_mode() argument
157 mode.bitand(ModeType::from_bits_truncate(0o777)), in add_file_with_mode()
237 mode: ModeType, in add_bin_file_with_mode() argument
269 mode.bitand(ModeType::from_bits_truncate(0o777)), in add_bin_file_with_mode()
/DragonOS-0.1.9/kernel/src/filesystem/vfs/
Dopen.rs12 syscall::{ModeType, OpenHow, OpenHowResolve},
20 mode: ModeType, in do_faccessat() argument
23 if (mode.bits() & (!ModeType::S_IRWXO.bits())) != 0 { in do_faccessat()
52 pub fn do_fchmodat(dirfd: i32, path: *const u8, _mode: ModeType) -> Result<usize, SystemError> { in do_fchmodat()
74 mode: ModeType, in do_sys_open() argument
117 ModeType::from_bits_truncate(0o755), in do_sys_openat2()
Dsyscall.rs42 pub struct ModeType: u32 {
98 mode: ModeType,
125 mode: ModeType { bits: 0 }, in new()
185 pub mode: ModeType,
190 pub fn new(mut o_flags: FileMode, mut mode: ModeType, resolve: OpenHowResolve) -> Self { in new() argument
192 mode = ModeType::empty(); in new()
210 let mode = ModeType::from_bits_truncate(posix_open_how.mode as u32); in from()
253 mode: ModeType, in open() argument
263 mode: ModeType, in openat() argument
835 FileType::File => kstat.mode.insert(ModeType::S_IFREG), in do_fstat()
[all …]
Dcore.rs17 vfs::{mount::MountFS, syscall::ModeType, AtomicInodeId, FileSystem, FileType},
64 .create("proc", FileType::Dir, ModeType::from_bits_truncate(0o755)) in vfs_init()
67 .create("dev", FileType::Dir, ModeType::from_bits_truncate(0o755)) in vfs_init()
70 .create("sys", FileType::Dir, ModeType::from_bits_truncate(0o755)) in vfs_init()
102 ModeType::from_bits_truncate(0o755), in do_migrate()
203 ModeType::from_bits_truncate(0o755), in do_mkdir()
Dmod.rs23 use self::{core::generate_inode_id, file::FileMode, syscall::ModeType};
221 mode: ModeType, in create() argument
240 _mode: ModeType, in create_with_data() argument
386 _mode: ModeType, in mknod() argument
535 pub mode: ModeType,
562 mode: ModeType::empty(), in default()
610 pub fn new(file_type: FileType, mode: ModeType) -> Self { in new()
Dmount.rs15 file::FileMode, syscall::ModeType, FilePrivateData, FileSystem, FileType, IndexNode, InodeId,
147 mode: ModeType, in create_with_data() argument
214 mode: ModeType, in create() argument
357 mode: ModeType, in mknod() argument
/DragonOS-0.1.9/kernel/src/exception/
Dsysfs.rs15 vfs::syscall::ModeType,
84 ) -> Option<ModeType> { in is_visible() argument
142 fn mode(&self) -> ModeType { in mode() argument
173 fn mode(&self) -> ModeType { in mode() argument
199 fn mode(&self) -> ModeType { in mode() argument
230 fn mode(&self) -> ModeType { in mode() argument
256 fn mode(&self) -> ModeType { in mode() argument
286 fn mode(&self) -> ModeType { in mode() argument
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dmod.rs21 vfs::syscall::ModeType,
259 ) -> Option<ModeType> { in is_visible() argument
272 fn mode(&self) -> ModeType { in mode() argument
273 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
301 fn mode(&self) -> ModeType { in mode() argument
302 ModeType::S_IWUSR in mode()
324 fn mode(&self) -> ModeType { in mode() argument
325 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
/DragonOS-0.1.9/kernel/src/misc/
Dksysfs.rs5 vfs::syscall::ModeType,
60 ) -> Option<ModeType> { in is_visible() argument
/DragonOS-0.1.9/kernel/src/filesystem/devfs/
Dmod.rs8 syscall::ModeType,
60 DevFSInode::new(FileType::Dir, ModeType::from_bits_truncate(0o755), 0), in new()
117 ModeType::from_bits_truncate(0o755), in register_device()
140 ModeType::from_bits_truncate(0o755), in register_device()
235 pub fn new(dev_type_: FileType, mode: ModeType, data_: usize) -> Self { in new() argument
242 mode: ModeType, in new_with_parent() argument
282 ModeType::from_bits_truncate(0o755), in add_dir()
322 mode: ModeType, in do_create_with_data() argument
388 mode: ModeType, in create_with_data() argument
Dnull_dev.rs3 use crate::filesystem::vfs::syscall::ModeType;
48 mode: ModeType::from_bits_truncate(0o666), in new()
Dzero_dev.rs3 use crate::filesystem::vfs::syscall::ModeType;
48 mode: ModeType::from_bits_truncate(0o666), in new()
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/
Dmod.rs21 file::FilePrivateData, syscall::ModeType, FileSystem, FsInfo, IndexNode, InodeId, Metadata,
99 mode: ModeType::from_bits_truncate(0o777), in new()
256 mode: ModeType, in create_with_data() argument
478 mode: ModeType, in mknod() argument
487 if unlikely(mode.contains(ModeType::S_IFREG)) { in mknod()
519 if mode.contains(ModeType::S_IFIFO) { in mknod()
525 } else if mode.contains(ModeType::S_IFBLK) { in mknod()
528 } else if mode.contains(ModeType::S_IFCHR) { in mknod()
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/
Dmod.rs24 core::generate_inode_id, file::FileMode, syscall::ModeType, FilePrivateData, FileSystem,
76 mode: ModeType::from_bits_truncate(0o755), in create_root_inode()
176 _mode: ModeType, in create_with_data() argument
435 mode: ModeType, in add_dir() argument
466 mode: ModeType, in add_file() argument
490 mode: ModeType, in inner_create() argument
582 ModeType::S_IFLNK | ModeType::from_bits_truncate(0o777), in add_link()
/DragonOS-0.1.9/kernel/src/driver/base/platform/
Dsubsys.rs19 vfs::syscall::ModeType,
158 fn is_visible(&self, _kobj: Arc<dyn KObject>, attr: &dyn Attribute) -> Option<ModeType> { in is_visible() argument
/DragonOS-0.1.9/kernel/src/driver/input/serio/
Dsubsys.rs19 vfs::syscall::ModeType,
137 fn is_visible(&self, _kobj: Arc<dyn KObject>, _attr: &dyn Attribute) -> Option<ModeType> { in is_visible() argument
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/
Dahci_inode.rs5 use crate::filesystem::vfs::syscall::ModeType;
53 mode: ModeType::from_bits_truncate(0o666), in new()
/DragonOS-0.1.9/kernel/src/driver/acpi/
Dsysfs.rs11 vfs::syscall::ModeType,
136 fn mode(&self) -> ModeType { in mode() argument
219 fn mode(&self) -> ModeType { in mode() argument
220 return ModeType::from_bits_truncate(0o400); in mode()
/DragonOS-0.1.9/kernel/src/filesystem/procfs/
Dmod.rs32 syscall::ModeType,
305 mode: ModeType::from_bits_truncate(0o555), in new()
333 ModeType::from_bits_truncate(0o444), in new()
347 let binding = inode.create("kmsg", FileType::File, ModeType::from_bits_truncate(0o444)); in new()
371 ModeType::from_bits_truncate(0o555), in register_pid()
378 ModeType::from_bits_truncate(0o444), in register_pid()
549 mode: ModeType, in create_with_data() argument
/DragonOS-0.1.9/kernel/src/driver/base/device/
Ddd.rs12 vfs::syscall::ModeType,
596 fn mode(&self) -> ModeType { in mode() argument
598 return ModeType::S_IRUGO; in mode()
632 fn mode(&self) -> ModeType { in mode() argument
Dbus.rs17 vfs::syscall::ModeType,
592 fn mode(&self) -> ModeType { in mode() argument
593 return ModeType::S_IWUSR; in mode()
630 fn mode(&self) -> ModeType { in mode() argument
740 fn mode(&self) -> ModeType { in mode() argument
789 fn mode(&self) -> ModeType { in mode() argument

12