/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 33 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 D | callback.rs | 9 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 D | kernfs.md | 18 …ect,每个上层的Kobject里面都需要包含KernFSInode。并且通过设置KernFSInode的PrivateData,使得KernFS能够根据Inode获取到其指向的KObject或者…
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | dir.rs | 12 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 D | symlink.rs | 8 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 D | mod.rs | 6 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 D | group.rs | 10 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 D | i8042_driver.rs | 15 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 D | i8042_ports.rs | 17 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 D | i8042_device.rs | 16 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 D | kset.rs | 13 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 D | kobject.rs | 13 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 D | cpu.rs | 10 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 D | device_node.rs | 6 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 D | pt_driver.rs | 20 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 D | pt_device.rs | 20 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 D | device.rs | 15 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 D | raw_device.rs | 15 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 D | ps_mouse_driver.rs | 29 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 D | mod.rs | 31 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 D | rtc_cmos.rs | 29 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 D | sysfs.rs | 18 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 D | platform_device.rs | 19 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 D | rtc.rs | 27 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 D | virtio_blk.rs | 41 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
|