Home
last modified time | relevance | path

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

12

/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs33 root_inode: Arc<KernFSInode>,
76 let ptr = root_inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new() constant
86 fn create_root_inode() -> Arc<KernFSInode> { in create_root_inode()
103 let root_inode = Arc::new(KernFSInode { in create_root_inode()
124 pub struct KernFSInode { struct
129 self_ref: Weak<KernFSInode>, argument
135 children: SpinLock<HashMap<String, Arc<KernFSInode>>>, argument
144 parent: Weak<KernFSInode>, argument
149 symlink_target: Option<Weak<KernFSInode>>,
153 impl IndexNode for KernFSInode { implementation
[all …]
H A Dcallback.rs9 use super::KernFSInode;
37 kern_inode: Arc<KernFSInode>,
44 kern_inode: Arc<KernFSInode>, in new() argument
54 pub fn kern_inode(&self) -> &Arc<KernFSInode> { in kern_inode() argument
/DragonOS/docs/kernel/filesystem/
H A Dkernfs.md18 …ect,每个上层的Kobject里面都需要包含KernFSInode。并且通过设置KernFSInode的PrivateData,使得KernFS能够根据Inode获取到其指向的KObject或者…
/DragonOS/kernel/src/filesystem/sysfs/
H A Ddir.rs12 kernfs::{callback::KernInodePrivateData, KernFSInode},
57 pub fn create_dir(&self, kobj: Arc<dyn KObject>) -> Result<Arc<KernFSInode>, SystemError> { in create_dir() argument
67 let dir: Arc<KernFSInode> = parent.add_dir( in create_dir()
89 pub(super) fn kernfs_path(&self, parent: &Arc<KernFSInode>) -> String { in kernfs_path()
H A Dsymlink.rs8 use crate::{driver::base::kobject::KObject, filesystem::kernfs::KernFSInode};
66 inode: &Arc<KernFSInode>, in do_create_link_sd() argument
98 inode: &Arc<KernFSInode>, in create_link_sd() argument
H A Dmod.rs6 kernfs::{KernFS, KernFSInode},
204 root_inode: Arc<KernFSInode>,
212 let root_inode: Arc<KernFSInode> = kernfs.root_inode().downcast_arc().unwrap(); in new()
219 pub fn root_inode(&self) -> &Arc<KernFSInode> { in root_inode() argument
228 pub(self) fn warn_duplicate(&self, parent: &Arc<KernFSInode>, name: &str) { in warn_duplicate() argument
H A Dgroup.rs10 kernfs::{callback::KernInodePrivateData, KernFSInode},
67 let parent_inode: Arc<KernFSInode>; in do_create_group()
135 let parent_inode: Arc<KernFSInode>; in remove_group()
169 parent: Arc<KernFSInode>, in group_create_files() argument
217 fn group_remove_files(&self, _parent: &Arc<KernFSInode>, _group: &'static dyn AttributeGroup) { in group_remove_files() argument
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_driver.rs15 filesystem::kernfs::KernFSInode,
58 kernfs_inode: Option<Arc<KernFSInode>>,
139 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
143 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
H A Di8042_ports.rs17 filesystem::kernfs::KernFSInode,
122 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
126 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
H A Di8042_device.rs16 filesystem::kernfs::KernFSInode,
125 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
129 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/base/
H A Dkset.rs13 filesystem::kernfs::KernFSInode,
154 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
158 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
221 kern_inode: Option<Arc<KernFSInode>>,
H A Dkobject.rs13 kernfs::KernFSInode,
30 fn set_inode(&self, inode: Option<Arc<KernFSInode>>); in set_inode() argument
33 fn inode(&self) -> Option<Arc<KernFSInode>>; in inode() argument
80 pub kern_inode: Option<Arc<KernFSInode>>,
H A Dcpu.rs10 filesystem::kernfs::KernFSInode,
209 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
213 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs6 filesystem::{kernfs::KernFSInode, sysfs::BinAttribute},
109 fn set_inode(&self, _inode: Option<Arc<KernFSInode>>) { in set_inode() argument
113 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs20 filesystem::kernfs::KernFSInode,
120 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
124 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
H A Dpt_device.rs20 kernfs::KernFSInode,
174 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
178 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs15 filesystem::kernfs::KernFSInode,
140 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
144 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
H A Draw_device.rs15 filesystem::{kernfs::KernFSInode, sysfs::AttributeGroup},
180 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
184 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs29 filesystem::kernfs::KernFSInode,
120 kernfs_inode: Option<Arc<KernFSInode>>,
164 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
168 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs31 filesystem::kernfs::KernFSInode,
308 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
312 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
391 kern_inode: Option<Arc<KernFSInode>>,
507 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
511 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs29 filesystem::kernfs::KernFSInode,
154 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
158 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
H A Dsysfs.rs18 kernfs::KernFSInode,
192 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
196 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs19 filesystem::kernfs::KernFSInode,
226 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
230 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs27 filesystem::kernfs::KernFSInode,
181 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
185 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs41 filesystem::{kernfs::KernFSInode, mbr::MbrDiskPartionTable},
424 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
428 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument
611 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode() argument
615 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode() argument

12