Home
last modified time | relevance | path

Searched refs:kernfs_node (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dkernfs.h104 struct kernfs_node *target_kn;
111 struct kernfs_node *notify_next; /* for kernfs_notify() */
123 struct kernfs_node { struct
135 struct kernfs_node *parent; argument
171 int (*mkdir)(struct kernfs_node *parent, const char *name,
173 int (*rmdir)(struct kernfs_node *kn);
174 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent,
176 int (*show_path)(struct seq_file *sf, struct kernfs_node *kn,
182 struct kernfs_node *kn;
199 struct kernfs_node *kn;
[all …]
Dsiox.h28 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;
Dsysfs.h256 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
258 void sysfs_unbreak_active_protection(struct kernfs_node *kn);
316 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns()
391 static inline struct kernfs_node *
398 static inline void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection()
545 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns()
614 static inline void sysfs_notify_dirent(struct kernfs_node *kn) in sysfs_notify_dirent()
619 static inline struct kernfs_node *sysfs_get_dirent(struct kernfs_node *parent, in sysfs_get_dirent()
625 static inline struct kernfs_node *sysfs_get(struct kernfs_node *kn) in sysfs_get()
631 static inline void sysfs_put(struct kernfs_node *kn) in sysfs_put()
Dcgroup-defs.h31 struct kernfs_node;
126 struct kernfs_node *kn;
405 struct kernfs_node *kn; /* cgroup kernfs entry */
/kernel/linux/linux-5.10/fs/kernfs/
Ddir.c25 #define rb_to_kn(X) rb_entry((X), struct kernfs_node, rb)
27 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active()
33 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep()
42 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked()
51 static size_t kernfs_depth(struct kernfs_node *from, struct kernfs_node *to) in kernfs_depth()
62 static struct kernfs_node *kernfs_common_ancestor(struct kernfs_node *a, in kernfs_common_ancestor()
63 struct kernfs_node *b) in kernfs_common_ancestor()
122 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to, in kernfs_path_from_node_locked()
123 struct kernfs_node *kn_from, in kernfs_path_from_node_locked()
126 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked()
[all …]
Dkernfs-internal.h44 static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn) in kernfs_root()
77 static inline struct kernfs_node *kernfs_dentry_node(struct dentry *dentry) in kernfs_dentry_node()
97 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
107 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn);
108 void kernfs_put_active(struct kernfs_node *kn);
109 int kernfs_add_one(struct kernfs_node *kn);
110 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent,
120 void kernfs_drain_open_files(struct kernfs_node *kn);
Dsymlink.c25 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()
57 static int kernfs_get_target_path(struct kernfs_node *parent, in kernfs_get_target_path()
58 struct kernfs_node *target, char *path) in kernfs_get_target_path()
60 struct kernfs_node *base, *kn; in kernfs_get_target_path()
114 struct kernfs_node *kn = inode->i_private; in kernfs_getlink()
115 struct kernfs_node *parent = kn->parent; in kernfs_getlink()
116 struct kernfs_node *target = kn->symlink.target_kn; in kernfs_getlink()
Dinode.c33 static struct kernfs_iattrs *__kernfs_iattrs(struct kernfs_node *kn, int alloc) in __kernfs_iattrs()
64 static struct kernfs_iattrs *kernfs_iattrs(struct kernfs_node *kn) in kernfs_iattrs()
69 static struct kernfs_iattrs *kernfs_iattrs_noalloc(struct kernfs_node *kn) in kernfs_iattrs_noalloc()
74 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) in __kernfs_setattr()
105 int kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) in kernfs_setattr()
118 struct kernfs_node *kn = inode->i_private; in kernfs_iop_setattr()
143 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_listxattr()
170 static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_refresh_inode()
190 struct kernfs_node *kn = inode->i_private; in kernfs_iop_getattr()
200 static void kernfs_init_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_init_inode()
[all …]
Dmount.c36 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 …]
Dfile.c53 static struct kernfs_node *kernfs_notify_list = KERNFS_NOTIFY_EOL;
64 static const struct kernfs_ops *kernfs_ops(struct kernfs_node *kn) in kernfs_ops()
523 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node()
574 static void kernfs_put_open_node(struct kernfs_node *kn, in kernfs_put_open_node()
599 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open()
726 static void kernfs_release_file(struct kernfs_node *kn, in kernfs_release_file()
751 struct kernfs_node *kn = inode->i_private; in kernfs_fop_release()
768 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 …]
/kernel/linux/linux-5.10/fs/sysfs/
Ddir.c21 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()
82 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir()
109 struct kernfs_node *parent; in sysfs_rename_dir_ns()
121 struct kernfs_node *kn = kobj->sd; in sysfs_move_dir_ns()
122 struct kernfs_node *new_parent; in sysfs_move_dir_ns()
137 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point()
158 struct kernfs_node *parent = parent_kobj->sd; in sysfs_remove_mount_point()
Dgroup.c20 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()
111 struct kernfs_node *kn; in internal_create_group()
273 struct kernfs_node *parent = kobj->sd; in sysfs_remove_group()
274 struct kernfs_node *kn; in sysfs_remove_group()
329 struct kernfs_node *parent; in sysfs_merge_group()
363 struct kernfs_node *parent; in sysfs_unmerge_group()
385 struct kernfs_node *parent; in sysfs_add_link_to_group()
408 struct kernfs_node *parent; in sysfs_remove_link_from_group()
432 struct kernfs_node *target; in compat_only_sysfs_link_entry_to_kobj()
[all …]
Dsysfs.h18 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,
38 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target,
Dsymlink.c20 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()
Dfile.c26 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) in sysfs_file_ops()
175 struct kernfs_node *kn = kobj->sd, *tmp; in sysfs_notify()
246 int sysfs_add_file_mode_ns(struct kernfs_node *parent, in sysfs_add_file_mode_ns()
252 struct kernfs_node *kn; in sysfs_add_file_mode_ns()
361 struct kernfs_node *parent; in sysfs_add_file_to_group()
395 struct kernfs_node *kn; in sysfs_chmod_file()
423 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
426 struct kernfs_node *kn; in sysfs_break_active_protection()
447 void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection()
468 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns()
[all …]
Dmount.c24 struct kernfs_node *sysfs_root_kn;
/kernel/linux/linux-5.10/drivers/md/
Dmd.h127 struct kernfs_node *sysfs_state; /* handle for 'state'
130 struct kernfs_node *sysfs_unack_badblocks;
132 struct kernfs_node *sysfs_badblocks;
422 struct kernfs_node *sysfs_state; /* handle for 'array_state'
425 struct kernfs_node *sysfs_action; /* handle for 'sync_action' */
426 struct kernfs_node *sysfs_completed; /*handle for 'sync_completed' */
427 struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */
428 struct kernfs_node *sysfs_level; /*handle for 'level' */
617 static inline struct kernfs_node *sysfs_get_dirent_safe(struct kernfs_node *sd, char *name) in sysfs_get_dirent_safe()
623 static inline void sysfs_notify_dirent_safe(struct kernfs_node *sd) in sysfs_notify_dirent_safe()
Dmd-bitmap.h232 struct kernfs_node *sysfs_can_clear;
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c43 static struct kernfs_node *kn_info;
46 static struct kernfs_node *kn_mongrp;
49 static struct kernfs_node *kn_mondata;
189 static int rdtgroup_kn_set_ugid(struct kernfs_node *kn) in rdtgroup_kn_set_ugid()
202 static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft) in rdtgroup_add_file()
204 struct kernfs_node *kn; in rdtgroup_add_file()
1608 static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags) in rdtgroup_add_files()
1683 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict()
1722 struct kernfs_node *kn, *parent; in rdtgroup_kn_mode_restore()
1763 struct kernfs_node *kn_subdir; in rdtgroup_mkdir_info_resdir()
[all …]
Dinternal.h151 struct kernfs_node *mon_data_kn;
210 struct kernfs_node *kn;
578 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn);
579 void rdtgroup_kn_unlock(struct kernfs_node *kn);
/kernel/linux/linux-5.10/kernel/cgroup/
Dcgroup-internal.h232 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline);
233 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,
/kernel/linux/linux-5.10/Documentation/networking/
Dsysfs-tagging.rst24 ``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.
/kernel/linux/linux-5.10/drivers/nvdimm/
Dpmem.h22 struct kernfs_node *bb_state;
/kernel/linux/linux-5.10/drivers/acpi/nfit/
Dnfit.h218 struct kernfs_node *flags_attr;
258 struct kernfs_node *scrub_count_state;
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h206 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()

12