/linux-6.1.9/include/linux/ |
D | kernfs.h | 171 struct kernfs_node *target_kn; 178 struct kernfs_node *notify_next; /* for kernfs_notify() */ 190 struct kernfs_node { struct 202 struct kernfs_node *parent; argument 238 int (*mkdir)(struct kernfs_node *parent, const char *name, 240 int (*rmdir)(struct kernfs_node *kn); 241 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent, 243 int (*show_path)(struct seq_file *sf, struct kernfs_node *kn, 247 struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root); 251 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 | 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()
|
D | cgroup-defs.h | 31 struct kernfs_node; 143 struct kernfs_node *kn; 427 struct kernfs_node *kn; /* cgroup kernfs entry */
|
/linux-6.1.9/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() 39 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active() 45 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep() 54 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() 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() 75 struct kernfs_node *b) in kernfs_common_ancestor() 134 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to, in kernfs_path_from_node_locked() 135 struct kernfs_node *kn_from, 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 | 37 struct kernfs_node *node = kernfs_dentry_node(dentry); in kernfs_sop_show_path() 60 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() 77 struct kernfs_node *kn; in __kernfs_fh_to_dentry() 107 struct kernfs_node *parent; in __kernfs_fh_to_dentry() 140 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() 174 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child, in find_next_ancestor() 175 struct kernfs_node *parent) in find_next_ancestor() 196 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry() 200 struct kernfs_node *knparent = NULL; in kernfs_node_dentry() 218 struct kernfs_node *kntmp; in kernfs_node_dentry() [all …]
|
D | file.c | 41 static struct kernfs_node *kernfs_notify_list = KERNFS_NOTIFY_EOL; 43 static inline struct mutex *kernfs_open_file_mutex_ptr(struct kernfs_node *kn) in kernfs_open_file_mutex_ptr() 50 static inline struct mutex *kernfs_open_file_mutex_lock(struct kernfs_node *kn) in kernfs_open_file_mutex_lock() 87 kernfs_deref_open_node_locked(struct kernfs_node *kn) in kernfs_deref_open_node_locked() 102 static const struct kernfs_ops *kernfs_ops(struct kernfs_node *kn) in kernfs_ops() 557 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node() 601 static void kernfs_unlink_open_file(struct kernfs_node *kn, in kernfs_unlink_open_file() 637 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open() 764 static void kernfs_release_file(struct kernfs_node *kn, in kernfs_release_file() 790 struct kernfs_node *kn = inode->i_private; in kernfs_fop_release() [all …]
|
/linux-6.1.9/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-6.1.9/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; 447 struct kernfs_node *sysfs_state; /* handle for 'array_state' 450 struct kernfs_node *sysfs_action; /* handle for 'sync_action' */ 451 struct kernfs_node *sysfs_completed; /*handle for 'sync_completed' */ 452 struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */ 453 struct kernfs_node *sysfs_level; /*handle for 'level' */ 643 static inline struct kernfs_node *sysfs_get_dirent_safe(struct kernfs_node *sd, char *name) in sysfs_get_dirent_safe() 649 static inline void sysfs_notify_dirent_safe(struct kernfs_node *sd) in sysfs_notify_dirent_safe()
|
/linux-6.1.9/kernel/cgroup/ |
D | cgroup-internal.h | 229 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline); 230 void cgroup_kn_unlock(struct kernfs_node *kn); 261 int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode); 262 int cgroup_rmdir(struct kernfs_node *kn); 263 int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node,
|
/linux-6.1.9/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() 1573 static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags) in rdtgroup_add_files() 1648 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict() 1687 struct kernfs_node *kn, *parent; in rdtgroup_kn_mode_restore() 1728 struct kernfs_node *kn_subdir; in rdtgroup_mkdir_info_resdir() [all …]
|
D | internal.h | 149 struct kernfs_node *mon_data_kn; 208 struct kernfs_node *kn; 493 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn); 494 void rdtgroup_kn_unlock(struct kernfs_node *kn);
|
/linux-6.1.9/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-6.1.9/drivers/nvdimm/ |
D | pmem.h | 25 struct kernfs_node *bb_state;
|
/linux-6.1.9/drivers/acpi/nfit/ |
D | nfit.h | 214 struct kernfs_node *flags_attr; 254 struct kernfs_node *scrub_count_state;
|
/linux-6.1.9/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-6.1.9/drivers/of/ |
D | kobj.c | 43 struct kernfs_node *kn; in safe_name()
|