Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dkernfs.h337 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
380 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in kernfs_enable_ns()
466 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() function
/openbmc/linux/fs/sysfs/
H A Ddir.c100 WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); in sysfs_remove_dir()
H A Dsymlink.c187 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_rename_link_ns()
H A Dfile.c627 if (kernfs_type(kn) != KERNFS_LINK) in sysfs_link_change_owner()
/openbmc/linux/fs/kernfs/
H A Ddir.c387 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_link_sibling()
414 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_unlink_sibling()
571 if (kernfs_type(kn) == KERNFS_LINK) in kernfs_put()
786 if (kernfs_type(parent) != KERNFS_DIR) in kernfs_add_one()
1322 if (kernfs_type(pos) != KERNFS_DIR) in kernfs_leftmost_descendant()
1428 if (WARN_ON_ONCE(kernfs_type(kn) == KERNFS_DIR)) in kernfs_show()
H A Dinode.c179 if (kernfs_type(kn) == KERNFS_DIR) in kernfs_refresh_inode()
211 switch (kernfs_type(kn)) { in kernfs_init_inode()
H A Dfile.c983 if (WARN_ON(kernfs_type(kn) != KERNFS_FILE)) in kernfs_notify()
/openbmc/linux/kernel/cgroup/
H A Dcgroup-v1.c707 kernfs_type(kn) != KERNFS_DIR) in cgroupstats_build()
836 if (kernfs_type(kn) != KERNFS_DIR) in cgroup1_rename()
H A Dcgroup.c1604 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_unlock()
1636 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_lock_live()
6209 if (kernfs_type(kn) != KERNFS_DIR) { in cgroup_get_from_id()
6783 !kn || kernfs_type(kn) != KERNFS_DIR) in css_tryget_online_from_dir()
6838 if (kernfs_type(kn) != KERNFS_DIR) { in cgroup_get_from_path()
/openbmc/linux/arch/x86/kernel/cpu/resctrl/
H A Drdtgroup.c1938 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restrict()
1986 switch (kernfs_type(kn)) { in rdtgroup_kn_mode_restore()
2294 if (kernfs_type(kn) == KERNFS_DIR) { in kernfs_to_rdtgroup()
3584 if (kernfs_type(kn) != KERNFS_DIR || in rdtgroup_rename()
3585 kernfs_type(new_parent) != KERNFS_DIR) { in rdtgroup_rename()