Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dkernfs.h335 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
378 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in kernfs_enable_ns()
464 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
/linux-6.1.9/fs/kernfs/
Ddir.c385 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_link_sibling()
408 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_unlink_sibling()
550 if (kernfs_type(kn) == KERNFS_LINK) in kernfs_put()
756 if (kernfs_type(parent) != KERNFS_DIR) in kernfs_add_one()
1272 if (kernfs_type(pos) != KERNFS_DIR) in kernfs_leftmost_descendant()
1376 if (WARN_ON_ONCE(kernfs_type(kn) == KERNFS_DIR)) in kernfs_show()
Dinode.c180 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_refresh_inode()
214 switch (kernfs_type(kn)) { in kernfs_init_inode()
Dfile.c977 if (WARN_ON(kernfs_type(kn) != KERNFS_FILE)) in kernfs_notify()
/linux-6.1.9/fs/sysfs/
Ddir.c100 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.c625 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_link_change_owner()
/linux-6.1.9/kernel/cgroup/
Dcgroup-v1.c708 kernfs_type(kn) != KERNFS_DIR) in cgroupstats_build()
837 if (kernfs_type(kn) != KERNFS_DIR) in cgroup1_rename()
Dcgroup.c1617 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_unlock()
1649 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_lock_live()
6195 if (kernfs_type(kn) != KERNFS_DIR) { in cgroup_get_from_id()
6767 !kn || kernfs_type(kn) != KERNFS_DIR) in css_tryget_online_from_dir()
6822 if (kernfs_type(kn) != KERNFS_DIR) { in cgroup_get_from_path()
/linux-6.1.9/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c1655 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restrict()
1703 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restore()
2015 if (kernfs_type(kn) == KERNFS_DIR) { in kernfs_to_rdtgroup()