/linux-5.19.10/include/linux/ |
D | kernfs.h | 112 struct kernfs_node *target_kn; 119 struct kernfs_node *notify_next; /* for kernfs_notify() */ 131 struct kernfs_node { struct 143 struct kernfs_node *parent; argument 179 int (*mkdir)(struct kernfs_node *parent, const char *name, 181 int (*rmdir)(struct kernfs_node *kn); 182 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent, 184 int (*show_path)(struct seq_file *sf, struct kernfs_node *kn, 188 struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root); 192 struct kernfs_node *kn; [all …]
|
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;
|
D | sysfs.h | 264 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, 266 void sysfs_unbreak_active_protection(struct kernfs_node *kn); 324 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 399 static inline struct kernfs_node * 406 static inline void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection() 553 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 622 static inline void sysfs_notify_dirent(struct kernfs_node *kn) in sysfs_notify_dirent() 627 static inline struct kernfs_node *sysfs_get_dirent(struct kernfs_node *parent, in sysfs_get_dirent() 633 static inline struct kernfs_node *sysfs_get(struct kernfs_node *kn) in sysfs_get() 639 static inline void sysfs_put(struct kernfs_node *kn) in sysfs_put()
|
D | cgroup-defs.h | 31 struct kernfs_node; 130 struct kernfs_node *kn; 410 struct kernfs_node *kn; /* cgroup kernfs entry */
|
/linux-5.19.10/fs/kernfs/ |
D | dir.c | 32 #define rb_to_kn(X) rb_entry((X), struct kernfs_node, rb) 34 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active() 40 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep() 49 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() 58 static size_t kernfs_depth(struct kernfs_node *from, struct kernfs_node *to) in kernfs_depth() 69 static struct kernfs_node *kernfs_common_ancestor(struct kernfs_node *a, in kernfs_common_ancestor() 70 struct kernfs_node *b) in kernfs_common_ancestor() 129 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to, in kernfs_path_from_node_locked() 130 struct kernfs_node *kn_from, in kernfs_path_from_node_locked() 133 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked() [all …]
|
D | kernfs-internal.h | 36 struct kernfs_node *kn; 63 static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn) in kernfs_root() 96 static inline struct kernfs_node *kernfs_dentry_node(struct dentry *dentry) in kernfs_dentry_node() 103 static inline void kernfs_set_rev(struct kernfs_node *parent, in kernfs_set_rev() 109 static inline void kernfs_inc_rev(struct kernfs_node *parent) in kernfs_inc_rev() 114 static inline bool kernfs_dir_changed(struct kernfs_node *parent, in kernfs_dir_changed() 138 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr); 147 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn); 148 void kernfs_put_active(struct kernfs_node *kn); 149 int kernfs_add_one(struct kernfs_node *kn); [all …]
|
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()
|
D | inode.c | 27 static struct kernfs_iattrs *__kernfs_iattrs(struct kernfs_node *kn, int alloc) in __kernfs_iattrs() 58 static struct kernfs_iattrs *kernfs_iattrs(struct kernfs_node *kn) in kernfs_iattrs() 63 static struct kernfs_iattrs *kernfs_iattrs_noalloc(struct kernfs_node *kn) in kernfs_iattrs_noalloc() 68 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) in __kernfs_setattr() 99 int kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) in kernfs_setattr() 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() 168 static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_refresh_inode() 189 struct kernfs_node *kn = inode->i_private; in kernfs_iop_getattr() 202 static void kernfs_init_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_init_inode() [all …]
|
D | mount.c | 36 struct kernfs_node *node = kernfs_dentry_node(dentry); in kernfs_sop_show_path() 59 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() 76 struct kernfs_node *kn; in __kernfs_fh_to_dentry() 106 struct kernfs_node *parent; in __kernfs_fh_to_dentry() 139 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() 173 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child, in find_next_ancestor() 174 struct kernfs_node *parent) in find_next_ancestor() 195 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry() 199 struct kernfs_node *knparent = NULL; in kernfs_node_dentry() 217 struct kernfs_node *kntmp; in kernfs_node_dentry() [all …]
|
D | file.c | 52 static struct kernfs_node *kernfs_notify_list = KERNFS_NOTIFY_EOL; 63 static const struct kernfs_ops *kernfs_ops(struct kernfs_node *kn) in kernfs_ops() 517 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node() 567 static void kernfs_unlink_open_file(struct kernfs_node *kn, in kernfs_unlink_open_file() 592 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open() 719 static void kernfs_release_file(struct kernfs_node *kn, in kernfs_release_file() 744 struct kernfs_node *kn = inode->i_private; in kernfs_fop_release() 761 void kernfs_drain_open_files(struct kernfs_node *kn) in kernfs_drain_open_files() 817 struct kernfs_node *kn = kernfs_dentry_node(of->file->f_path.dentry); in kernfs_generic_poll() 831 struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry); in kernfs_fop_poll() [all …]
|
/linux-5.19.10/fs/sysfs/ |
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()
|
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,
|
D | group.c | 20 static void remove_files(struct kernfs_node *parent, in remove_files() 34 static int create_files(struct kernfs_node *parent, struct kobject *kobj, in create_files() 110 struct kernfs_node *kn; in internal_create_group() 272 struct kernfs_node *parent = kobj->sd; in sysfs_remove_group() 273 struct kernfs_node *kn; in sysfs_remove_group() 328 struct kernfs_node *parent; in sysfs_merge_group() 362 struct kernfs_node *parent; in sysfs_unmerge_group() 384 struct kernfs_node *parent; in sysfs_add_link_to_group() 407 struct kernfs_node *parent; in sysfs_remove_link_from_group() 431 struct kernfs_node *target; in compat_only_sysfs_link_entry_to_kobj() [all …]
|
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()
|
D | file.c | 26 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) in sysfs_file_ops() 182 struct kernfs_node *kn = kobj->sd, *tmp; in sysfs_notify() 254 int sysfs_add_file_mode_ns(struct kernfs_node *parent, in sysfs_add_file_mode_ns() 262 struct kernfs_node *kn; in sysfs_add_file_mode_ns() 304 int sysfs_add_bin_file_mode_ns(struct kernfs_node *parent, in sysfs_add_bin_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() 444 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection() 447 struct kernfs_node *kn; in sysfs_break_active_protection() [all …]
|
D | mount.c | 24 struct kernfs_node *sysfs_root_kn;
|
/linux-5.19.10/drivers/md/ |
D | md.h | 127 struct kernfs_node *sysfs_state; /* handle for 'state' 130 struct kernfs_node *sysfs_unack_badblocks; 132 struct kernfs_node *sysfs_badblocks; 430 struct kernfs_node *sysfs_state; /* handle for 'array_state' 433 struct kernfs_node *sysfs_action; /* handle for 'sync_action' */ 434 struct kernfs_node *sysfs_completed; /*handle for 'sync_completed' */ 435 struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */ 436 struct kernfs_node *sysfs_level; /*handle for 'level' */ 626 static inline struct kernfs_node *sysfs_get_dirent_safe(struct kernfs_node *sd, char *name) in sysfs_get_dirent_safe() 632 static inline void sysfs_notify_dirent_safe(struct kernfs_node *sd) in sysfs_notify_dirent_safe()
|
/linux-5.19.10/kernel/cgroup/ |
D | cgroup-internal.h | 231 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline); 232 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,
|
/linux-5.19.10/arch/x86/kernel/cpu/resctrl/ |
D | rdtgroup.c | 46 static struct kernfs_node *kn_info; 49 static struct kernfs_node *kn_mongrp; 52 static struct kernfs_node *kn_mondata; 192 static int rdtgroup_kn_set_ugid(struct kernfs_node *kn) in rdtgroup_kn_set_ugid() 205 static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft) in rdtgroup_add_file() 207 struct kernfs_node *kn; in rdtgroup_add_file() 1568 static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags) in rdtgroup_add_files() 1643 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict() 1682 struct kernfs_node *kn, *parent; in rdtgroup_kn_mode_restore() 1723 struct kernfs_node *kn_subdir; in rdtgroup_mkdir_info_resdir() [all …]
|
D | internal.h | 158 struct kernfs_node *mon_data_kn; 217 struct kernfs_node *kn; 500 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn); 501 void rdtgroup_kn_unlock(struct kernfs_node *kn);
|
/linux-5.19.10/Documentation/networking/ |
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.
|
/linux-5.19.10/drivers/nvdimm/ |
D | pmem.h | 25 struct kernfs_node *bb_state;
|
/linux-5.19.10/drivers/acpi/nfit/ |
D | nfit.h | 214 struct kernfs_node *flags_attr; 254 struct kernfs_node *scrub_count_state;
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | profiler.inc.h | 206 static INLINE void* read_full_cgroup_path(struct kernfs_node* cgroup_node, in read_full_cgroup_path() 207 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() 632 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in raw_tracepoint__sched_process_exit()
|
/linux-5.19.10/drivers/of/ |
D | kobj.c | 43 struct kernfs_node *kn; in safe_name()
|