/openbmc/linux/include/linux/ |
H A D | kernfs.h | 190 struct kernfs_node { struct 243 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent, 401 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn); 402 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, 404 struct kernfs_node *kernfs_walk_and_get_ns(struct kernfs_node *parent, 419 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, 423 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent, 425 struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent, 432 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, 443 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, [all …]
|
H A D | siox.h | 28 struct kernfs_node *status_errors_kn; 29 struct kernfs_node *watchdog_kn; 30 struct kernfs_node *watchdog_errors_kn; 31 struct kernfs_node *connected_kn;
|
H A D | sysfs.h | 280 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, 282 void sysfs_unbreak_active_protection(struct kernfs_node *kn); 340 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 415 static inline struct kernfs_node * 422 static inline void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection() 569 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 638 static inline void sysfs_notify_dirent(struct kernfs_node *kn) in sysfs_notify_dirent() 643 static inline struct kernfs_node *sysfs_get_dirent(struct kernfs_node *parent, in sysfs_get_dirent() 649 static inline struct kernfs_node *sysfs_get(struct kernfs_node *kn) in sysfs_get() 655 static inline void sysfs_put(struct kernfs_node *kn) in sysfs_put()
|
H A D | cgroup-defs.h | 31 struct kernfs_node; 143 struct kernfs_node *kn; 441 struct kernfs_node *kn; /* cgroup kernfs entry */
|
/openbmc/linux/fs/kernfs/ |
H A D | dir.c | 63 static size_t kernfs_depth(struct kernfs_node *from, struct kernfs_node *to) in kernfs_depth() 74 static struct kernfs_node *kernfs_common_ancestor(struct kernfs_node *a, in kernfs_common_ancestor() 292 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn) in kernfs_get_parent() 434 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn) in kernfs_get_active() 534 struct kernfs_node *kn = container_of(rcu, struct kernfs_node, rcu); in kernfs_free_rcu() 681 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, in kernfs_new_node() 837 static struct kernfs_node *kernfs_find_ns(struct kernfs_node *parent, in kernfs_find_ns() 870 static struct kernfs_node *kernfs_walk_ns(struct kernfs_node *parent, in kernfs_walk_ns() 1052 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, in kernfs_create_dir_ns() 1793 struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) in kernfs_dir_pos() [all …]
|
H A D | kernfs-internal.h | 36 struct kernfs_node *kn; 67 static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn) in kernfs_root() 107 static inline void kernfs_set_rev(struct kernfs_node *parent, in kernfs_set_rev() 113 static inline void kernfs_inc_rev(struct kernfs_node *parent) in kernfs_inc_rev() 118 static inline bool kernfs_dir_changed(struct kernfs_node *parent, in kernfs_dir_changed() 151 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn); 152 void kernfs_put_active(struct kernfs_node *kn); 153 int kernfs_add_one(struct kernfs_node *kn); 154 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, 164 bool kernfs_should_drain_open_files(struct kernfs_node *kn); [all …]
|
H A D | symlink.c | 25 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, in kernfs_create_link() 27 struct kernfs_node *target) in kernfs_create_link() 29 struct kernfs_node *kn; in kernfs_create_link() 56 static int kernfs_get_target_path(struct kernfs_node *parent, in kernfs_get_target_path() 57 struct kernfs_node *target, char *path) in kernfs_get_target_path() 59 struct kernfs_node *base, *kn; in kernfs_get_target_path() 113 struct kernfs_node *kn = inode->i_private; in kernfs_getlink() 114 struct kernfs_node *parent = kn->parent; in kernfs_getlink() 115 struct kernfs_node *target = kn->symlink.target_kn; in kernfs_getlink()
|
H A D | inode.c | 58 static struct kernfs_iattrs *kernfs_iattrs(struct kernfs_node *kn) in kernfs_iattrs() 114 struct kernfs_node *kn = inode->i_private; in kernfs_iop_setattr() 141 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_listxattr() 188 struct kernfs_node *kn = inode->i_private; in kernfs_iop_getattr() 267 struct kernfs_node *kn = inode->i_private; in kernfs_evict_inode() 277 struct kernfs_node *kn; in kernfs_iop_permission() 326 struct kernfs_node *kn = inode->i_private; in kernfs_vfs_xattr_get() 338 struct kernfs_node *kn = inode->i_private; in kernfs_vfs_xattr_set() 343 static int kernfs_vfs_user_xattr_add(struct kernfs_node *kn, in kernfs_vfs_user_xattr_add() 382 static int kernfs_vfs_user_xattr_rm(struct kernfs_node *kn, in kernfs_vfs_user_xattr_rm() [all …]
|
H A D | mount.c | 39 struct kernfs_node *node = kernfs_dentry_node(dentry); in kernfs_sop_show_path() 69 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() 86 struct kernfs_node *kn; in __kernfs_fh_to_dentry() 116 struct kernfs_node *parent; in __kernfs_fh_to_dentry() 149 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() 183 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child, in find_next_ancestor() 184 struct kernfs_node *parent) in find_next_ancestor() 207 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry() 211 struct kernfs_node *knparent = NULL; in kernfs_node_dentry() 229 struct kernfs_node *kntmp; in kernfs_node_dentry() [all …]
|
H A D | file.c | 91 kernfs_deref_open_node_locked(struct kernfs_node *kn) in kernfs_deref_open_node_locked() 563 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node() 643 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open() 770 static void kernfs_release_file(struct kernfs_node *kn, in kernfs_release_file() 796 struct kernfs_node *kn = inode->i_private; in kernfs_fop_release() 834 void kernfs_drain_open_files(struct kernfs_node *kn) in kernfs_drain_open_files() 910 struct kernfs_node *kn; in kernfs_notify_workfn() 930 struct kernfs_node *parent; in kernfs_notify_workfn() 977 void kernfs_notify(struct kernfs_node *kn) in kernfs_notify() 1035 struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent, in __kernfs_create_file() [all …]
|
/openbmc/linux/fs/sysfs/ |
H A D | dir.c | 21 void sysfs_warn_dup(struct kernfs_node *parent, const char *name) in sysfs_warn_dup() 42 struct kernfs_node *parent, *kn; in sysfs_create_dir_ns() 81 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir() 108 struct kernfs_node *parent; in sysfs_rename_dir_ns() 120 struct kernfs_node *kn = kobj->sd; in sysfs_move_dir_ns() 121 struct kernfs_node *new_parent; in sysfs_move_dir_ns() 136 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() 157 struct kernfs_node *parent = parent_kobj->sd; in sysfs_remove_mount_point()
|
H A D | sysfs.h | 18 extern struct kernfs_node *sysfs_root_kn; 25 void sysfs_warn_dup(struct kernfs_node *parent, const char *name); 30 int sysfs_add_file_mode_ns(struct kernfs_node *parent, 33 int sysfs_add_bin_file_mode_ns(struct kernfs_node *parent, 40 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target,
|
H A D | group.c | 110 struct kernfs_node *kn; in internal_create_group() 277 struct kernfs_node *kn; in sysfs_remove_group() 332 struct kernfs_node *parent; in sysfs_merge_group() 366 struct kernfs_node *parent; in sysfs_unmerge_group() 388 struct kernfs_node *parent; in sysfs_add_link_to_group() 411 struct kernfs_node *parent; in sysfs_remove_link_from_group() 435 struct kernfs_node *target; in compat_only_sysfs_link_entry_to_kobj() 436 struct kernfs_node *entry; in compat_only_sysfs_link_entry_to_kobj() 437 struct kernfs_node *link; in compat_only_sysfs_link_entry_to_kobj() 475 struct kernfs_node *kn; in sysfs_group_attrs_change_owner() [all …]
|
H A D | symlink.c | 20 static int sysfs_do_create_link_sd(struct kernfs_node *parent, in sysfs_do_create_link_sd() 24 struct kernfs_node *kn, *target = NULL; in sysfs_do_create_link_sd() 61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd() 70 struct kernfs_node *parent = NULL; in sysfs_do_create_link() 145 struct kernfs_node *parent = NULL; in sysfs_remove_link() 169 struct kernfs_node *parent, *kn = NULL; in sysfs_rename_link_ns()
|
H A D | file.c | 262 struct kernfs_node *kn; in sysfs_add_file_mode_ns() 311 struct kernfs_node *kn; in sysfs_add_bin_file_mode_ns() 382 struct kernfs_node *parent; in sysfs_add_file_to_group() 416 struct kernfs_node *kn; in sysfs_chmod_file() 447 struct kernfs_node *kn; in sysfs_break_active_protection() 491 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns() 506 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_self() 507 struct kernfs_node *kn; in sysfs_remove_file_self() 539 struct kernfs_node *parent; in sysfs_remove_file_from_group() 615 struct kernfs_node *kn = NULL; in sysfs_link_change_owner() [all …]
|
H A D | mount.c | 24 struct kernfs_node *sysfs_root_kn;
|
/openbmc/linux/drivers/md/ |
H A D | md.h | 125 struct kernfs_node *sysfs_state; /* handle for 'state' 128 struct kernfs_node *sysfs_unack_badblocks; 130 struct kernfs_node *sysfs_badblocks; 448 struct kernfs_node *sysfs_state; /* handle for 'array_state' 451 struct kernfs_node *sysfs_action; /* handle for 'sync_action' */ 452 struct kernfs_node *sysfs_completed; /*handle for 'sync_completed' */ 453 struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */ 454 struct kernfs_node *sysfs_level; /*handle for 'level' */ 673 static inline struct kernfs_node *sysfs_get_dirent_safe(struct kernfs_node *sd, char *name) in sysfs_get_dirent_safe() 679 static inline void sysfs_notify_dirent_safe(struct kernfs_node *sd) in sysfs_notify_dirent_safe()
|
/openbmc/linux/kernel/cgroup/ |
H A D | cgroup-internal.h | 228 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline); 229 void cgroup_kn_unlock(struct kernfs_node *kn); 260 int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode); 261 int cgroup_rmdir(struct kernfs_node *kn); 262 int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node,
|
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | rdtgroup.c | 46 static struct kernfs_node *kn_info; 49 static struct kernfs_node *kn_mongrp; 220 struct kernfs_node *kn; in rdtgroup_add_file() 1931 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict() 2011 struct kernfs_node *kn_subdir; in rdtgroup_mkdir_info_resdir() 2081 struct kernfs_node *kn; in mongroup_create_dir() 2812 struct kernfs_node *kn; in mon_addfile() 2854 struct kernfs_node *kn; in mkdir_mondata_subdir() 2955 struct kernfs_node *kn; in mkdir_mondata_all() 3175 struct kernfs_node *kn; in mkdir_rdt_prepare() [all …]
|
H A D | internal.h | 163 struct kernfs_node *mon_data_kn; 222 struct kernfs_node *kn; 507 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn); 508 void rdtgroup_kn_unlock(struct kernfs_node *kn);
|
/openbmc/linux/Documentation/networking/ |
H A D | sysfs-tagging.rst | 24 ``void *ns member`` of its ``kernfs_node``. If a directory entry is tagged, 25 then ``kernfs_node->flags`` will have a flag between KOBJ_NS_TYPE_NONE 37 kernfs_node->ns pointers pointing to it.
|
/openbmc/linux/tools/perf/util/bpf_skel/vmlinux/ |
H A D | vmlinux.h | 70 struct kernfs_node { struct 75 struct kernfs_node *kn; argument
|
/openbmc/linux/drivers/nvdimm/ |
H A D | pmem.h | 25 struct kernfs_node *bb_state;
|
/openbmc/linux/drivers/acpi/nfit/ |
H A D | nfit.h | 214 struct kernfs_node *flags_attr; 254 struct kernfs_node *scrub_count_state;
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | profiler.inc.h | 205 static INLINE void* read_full_cgroup_path(struct kernfs_node* cgroup_node, in read_full_cgroup_path() 206 struct kernfs_node* cgroup_root_node, in read_full_cgroup_path() 233 static ino_t get_inode_from_kernfs(struct kernfs_node* node) in get_inode_from_kernfs() 255 struct kernfs_node* root_kernfs = in populate_cgroup_info() 257 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in populate_cgroup_info() 640 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in raw_tracepoint__sched_process_exit()
|