Home
last modified time | relevance | path

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

123

/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbsysfs.rs9 vfs::syscall::ModeType,
43 ) -> Option<ModeType> { in is_visible() argument
56 fn mode(&self) -> ModeType { in mode() argument
57 ModeType::S_IRUGO in mode()
80 fn mode(&self) -> ModeType { in mode() argument
81 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
110 fn mode(&self) -> ModeType { in mode() argument
111 ModeType::S_IWUSR in mode()
133 fn mode(&self) -> ModeType { in mode() argument
134 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
[all …]
/DragonOS/kernel/src/driver/net/
H A Dsysfs.rs12 vfs::syscall::ModeType,
79 ) -> Option<ModeType> { in is_visible() argument
97 fn mode(&self) -> ModeType { in mode() argument
124 fn mode(&self) -> ModeType { in mode() argument
146 fn mode(&self) -> ModeType { in mode() argument
168 fn mode(&self) -> ModeType { in mode() argument
194 fn mode(&self) -> ModeType { in mode() argument
216 fn mode(&self) -> ModeType { in mode() argument
238 fn mode(&self) -> ModeType { in mode() argument
265 fn mode(&self) -> ModeType { in mode() argument
[all …]
/DragonOS/kernel/src/filesystem/sysfs/
H A Dmod.rs7 vfs::{syscall::ModeType, FileSystem},
46 .mkdir("sys", ModeType::from_bits_truncate(0o755)) in sysfs_init()
114 ) -> Option<ModeType> { in is_visible() argument
120 pub const SYSFS_ATTR_MODE_RO: ModeType = ModeType::from_bits_truncate(0o444);
122 pub const SYSFS_ATTR_MODE_WO: ModeType = ModeType::from_bits_truncate(0o200);
124 pub const SYSFS_ATTR_MODE_RW: ModeType = ModeType::from_bits_truncate(0o644);
129 fn mode(&self) -> ModeType; in mode() argument
H A Dgroup.rs12 vfs::{syscall::ModeType, IndexNode},
83 ModeType::S_IRWXU | ModeType::S_IRUGO | ModeType::S_IXUGO, in do_create_group()
198 mode = ModeType::from_bits_truncate(mode.bits() & 0o644); in group_create_files()
H A Ddir.rs13 vfs::syscall::ModeType,
69 ModeType::from_bits_truncate(0o755), in create_dir()
H A Dfile.rs18 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/kernel/src/driver/pci/
H A Dattr.rs12 vfs::syscall::ModeType,
33 ) -> Option<ModeType> { in is_visible() argument
42 fn mode(&self) -> ModeType { in mode() argument
73 fn mode(&self) -> ModeType { in mode() argument
104 fn mode(&self) -> ModeType { in mode() argument
135 fn mode(&self) -> ModeType { in mode() argument
/DragonOS/kernel/src/exception/
H A Dsysfs.rs16 vfs::syscall::ModeType,
85 ) -> Option<ModeType> { in is_visible() argument
143 fn mode(&self) -> ModeType { in mode() argument
174 fn mode(&self) -> ModeType { in mode() argument
200 fn mode(&self) -> ModeType { in mode() argument
231 fn mode(&self) -> ModeType { in mode() argument
257 fn mode(&self) -> ModeType { in mode() argument
287 fn mode(&self) -> ModeType { in mode() argument
/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs45 pub struct ModeType: u32 {
102 mode: ModeType,
129 mode: ModeType { bits: 0 }, in new()
172 stx_mode: ModeType,
218 stx_mode: ModeType { bits: 0 }, in new()
408 pub mode: ModeType,
413 pub fn new(mut o_flags: FileMode, mut mode: ModeType, resolve: OpenHowResolve) -> Self { in new() argument
415 mode = ModeType::empty(); in new()
433 let mode = ModeType::from_bits_truncate(posix_open_how.mode as u32); in from()
495 let mode = ModeType::from_bits(mode).ok_or(SystemError::EINVAL)?; in open()
[all …]
H A Dopen.rs8 syscall::{ModeType, OpenHow, OpenHowResolve},
26 mode: ModeType, in do_faccessat() argument
29 if (mode.bits() & (!ModeType::S_IRWXO.bits())) != 0 { in do_faccessat()
55 pub fn do_fchmodat(dirfd: i32, path: *const u8, _mode: ModeType) -> Result<usize, SystemError> { in do_fchmodat()
133 meta.mode.remove(ModeType::S_ISUID | ModeType::S_ISGID); in chown_common()
156 mode: ModeType, in do_sys_open() argument
198 ModeType::from_bits_truncate(0o755), in do_sys_openat2()
H A Dcore.rs16 mount::MountFS, syscall::ModeType, AtomicInodeId, FileSystem, FileType, MAX_PATHLEN,
96 .mkdir("proc", ModeType::from_bits_truncate(0o755)) in migrate_virtual_filesystem()
101 .mkdir("dev", ModeType::from_bits_truncate(0o755)) in migrate_virtual_filesystem()
106 .mkdir("sys", ModeType::from_bits_truncate(0o755)) in migrate_virtual_filesystem()
183 return current_inode.mkdir(name, ModeType::from_bits_truncate(mode.bits())); in do_mkdir_at()
287 ModeType::from_bits_truncate(0o777), in do_symlinkat()
H A Dmod.rs30 syscall::ModeType,
237 mode: ModeType, in create() argument
256 _mode: ModeType, in create_with_data() argument
498 _mode: ModeType, in mknod() argument
519 fn mkdir(&self, name: &str, mode: ModeType) -> Result<Arc<dyn IndexNode>, SystemError> { in mkdir()
754 pub mode: ModeType,
781 mode: ModeType::empty(), in default()
906 pub fn new(file_type: FileType, mode: ModeType) -> Self { in new()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs25 vfs::syscall::ModeType,
267 ) -> Option<ModeType> { in is_visible() argument
280 fn mode(&self) -> ModeType { in mode() argument
281 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
309 fn mode(&self) -> ModeType { in mode() argument
310 ModeType::S_IWUSR in mode()
332 fn mode(&self) -> ModeType { in mode() argument
333 ModeType::S_IRUGO | ModeType::S_IWUSR in mode()
/DragonOS/kernel/src/misc/
H A Dksysfs.rs5 vfs::syscall::ModeType,
61 ) -> Option<ModeType> { in is_visible() argument
/DragonOS/kernel/src/driver/base/
H A Dcpu.rs27 use crate::filesystem::vfs::syscall::ModeType;
276 ) -> Option<ModeType> { in is_visible() argument
289 fn mode(&self) -> ModeType { in mode() argument
290 ModeType::S_IRUGO in mode()
313 fn mode(&self) -> ModeType { in mode() argument
314 ModeType::S_IRUGO in mode()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs8 syscall::ModeType,
75 DevFSInode::new(FileType::Dir, ModeType::from_bits_truncate(0o755), 0), in new()
135 ModeType::from_bits_truncate(0o755), in register_device()
162 ModeType::from_bits_truncate(0o755), in register_device()
259 pub fn new(dev_type_: FileType, mode: ModeType, data_: usize) -> Self { in new() argument
266 mode: ModeType, in new_with_parent() argument
307 ModeType::from_bits_truncate(0o755), in add_dir()
347 mode: ModeType, in do_create_with_data() argument
414 mode: ModeType, in create_with_data() argument
619 .mkdir("dev", ModeType::from_bits_truncate(0o755)) in devfs_init()
H A Dnull_dev.rs3 use crate::filesystem::vfs::syscall::ModeType;
49 mode: ModeType::from_bits_truncate(0o666), in new()
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs22 vfs::syscall::ModeType,
281 ) -> Option<ModeType> { in is_visible() argument
296 fn mode(&self) -> ModeType { in mode() argument
325 fn mode(&self) -> ModeType { in mode() argument
349 fn mode(&self) -> ModeType { in mode() argument
372 fn mode(&self) -> ModeType { in mode() argument
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs25 filesystem::vfs::{core::do_mount_mkdir, syscall::ModeType, FileType},
113 mode: ModeType::from_bits_truncate(0o777), in new()
220 _mode: super::vfs::syscall::ModeType, in create_with_data() argument
243 metadata.mode.insert(ModeType::S_IFCHR); in create_with_data()
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs25 core::generate_inode_id, file::FileMode, syscall::ModeType, FilePrivateData, FileSystem,
89 mode: ModeType::from_bits_truncate(0o755), in create_root_inode()
193 _mode: ModeType, in create_with_data() argument
451 mode: ModeType, in add_dir() argument
482 mode: ModeType, in add_file() argument
506 mode: ModeType, in inner_create() argument
598 ModeType::S_IFLNK | ModeType::from_bits_truncate(0o777), in add_link()
/DragonOS/kernel/src/driver/input/serio/
H A Dsubsys.rs20 vfs::syscall::ModeType,
138 fn is_visible(&self, _kobj: Arc<dyn KObject>, _attr: &dyn Attribute) -> Option<ModeType> { in is_visible() argument
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs9 use crate::filesystem::vfs::syscall::ModeType;
76 mode: ModeType::from_bits_truncate(0o755), in metadata()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_device.rs24 vfs::syscall::ModeType,
217 ) -> Option<ModeType> { in is_visible() argument
225 fn mode(&self) -> ModeType { in mode() argument
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs25 file::FilePrivateData, syscall::ModeType, utils::DName, FileSystem, FileSystemMaker, FsInfo,
90 mode: ModeType::from_bits_truncate(0o777), in new()
305 mode: ModeType, in create_with_data() argument
567 mode: ModeType, in mknod() argument
576 if unlikely(mode.contains(ModeType::S_IFREG)) { in mknod()
611 if mode.contains(ModeType::S_IFIFO) { in mknod()
617 } else if mode.contains(ModeType::S_IFBLK) { in mknod()
620 } else if mode.contains(ModeType::S_IFCHR) { in mknod()
/DragonOS/kernel/src/driver/base/platform/
H A Dsubsys.rs22 vfs::syscall::ModeType,
166 fn is_visible(&self, _kobj: Arc<dyn KObject>, attr: &dyn Attribute) -> Option<ModeType> { in is_visible() argument

123