Home
last modified time | relevance | path

Searched refs:kernfs_type (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dkernfs.h287 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
330 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in kernfs_enable_ns()
415 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
/kernel/linux/linux-5.10/fs/sysfs/
Ddir.c101 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in sysfs_remove_dir()
Dsymlink.c187 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_rename_link_ns()
Dfile.c604 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_link_change_owner()
/kernel/linux/linux-5.10/fs/kernfs/
Dinode.c182 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_refresh_inode()
212 switch (kernfs_type(kn)) { in kernfs_init_inode()
Ddir.c373 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_link_sibling()
395 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_unlink_sibling()
525 if (kernfs_type(kn) == KERNFS_LINK) in kernfs_put()
775 if (kernfs_type(parent) != KERNFS_DIR) in kernfs_add_one()
1202 if (kernfs_type(pos) != KERNFS_DIR) in kernfs_leftmost_descendant()
Dfile.c919 if (WARN_ON(kernfs_type(kn) != KERNFS_FILE)) in kernfs_notify()
/kernel/linux/linux-5.10/kernel/cgroup/
Dcgroup-v1.c715 kernfs_type(kn) != KERNFS_DIR) in cgroupstats_build()
847 if (kernfs_type(kn) != KERNFS_DIR) in cgroup1_rename()
Dcgroup.c1557 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_unlock()
1589 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_lock_live()
6334 !kn || kernfs_type(kn) != KERNFS_DIR) in css_tryget_online_from_dir()
6387 if (kernfs_type(kn) == KERNFS_DIR) { in cgroup_get_from_path()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c1690 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restrict()
1738 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restore()
2022 if (kernfs_type(kn) == KERNFS_DIR) { in kernfs_to_rdtgroup()