Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/include/linux/
A Dkernfs.h190 struct kernfs_node { struct
241 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent,
399 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn);
400 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent,
402 struct kernfs_node *kernfs_walk_and_get_ns(struct kernfs_node *parent,
417 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent,
421 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent,
423 struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
430 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent,
441 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent,
[all …]
A 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;
A Dsysfs.h280 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()
A Dcgroup-defs.h31 struct kernfs_node;
143 struct kernfs_node *kn;
427 struct kernfs_node *kn; /* cgroup kernfs entry */
A Dleds.h24 struct kernfs_node;
182 struct kernfs_node *brightness_hw_changed_kn;
/linux-6.3-rc2/fs/kernfs/
A Ddir.c63 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()
430 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn) in kernfs_get_active()
666 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, in kernfs_new_node()
807 static struct kernfs_node *kernfs_find_ns(struct kernfs_node *parent, in kernfs_find_ns()
840 static struct kernfs_node *kernfs_walk_ns(struct kernfs_node *parent, in kernfs_walk_ns()
882 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, in kernfs_find_and_get_ns()
1020 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, in kernfs_create_dir_ns()
1764 struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) in kernfs_dir_pos()
[all …]
A Dkernfs-internal.h36 struct kernfs_node *kn;
63 static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn) in kernfs_root()
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()
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);
150 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent,
160 bool kernfs_should_drain_open_files(struct kernfs_node *kn);
[all …]
A 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()
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()
A Dinode.c58 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()
189 struct kernfs_node *kn = inode->i_private; in kernfs_iop_getattr()
268 struct kernfs_node *kn = inode->i_private; in kernfs_evict_inode()
278 struct kernfs_node *kn; in kernfs_iop_permission()
321 struct kernfs_node *kn = inode->i_private; in kernfs_vfs_xattr_get()
333 struct kernfs_node *kn = inode->i_private; in kernfs_vfs_xattr_set()
338 static int kernfs_vfs_user_xattr_add(struct kernfs_node *kn, in kernfs_vfs_user_xattr_add()
372 static int kernfs_vfs_user_xattr_rm(struct kernfs_node *kn, in kernfs_vfs_user_xattr_rm()
[all …]
A Dmount.c37 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()
198 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry()
202 struct kernfs_node *knparent = NULL; in kernfs_node_dentry()
220 struct kernfs_node *kntmp; in kernfs_node_dentry()
[all …]
A Dfile.c91 kernfs_deref_open_node_locked(struct kernfs_node *kn) in kernfs_deref_open_node_locked()
561 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node()
641 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open()
768 static void kernfs_release_file(struct kernfs_node *kn, in kernfs_release_file()
794 struct kernfs_node *kn = inode->i_private; in kernfs_fop_release()
832 void kernfs_drain_open_files(struct kernfs_node *kn) in kernfs_drain_open_files()
908 struct kernfs_node *kn; in kernfs_notify_workfn()
928 struct kernfs_node *parent; in kernfs_notify_workfn()
975 void kernfs_notify(struct kernfs_node *kn) in kernfs_notify()
1033 struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent, in __kernfs_create_file()
[all …]
/linux-6.3-rc2/fs/sysfs/
A 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()
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()
A 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,
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,
A Dgroup.c110 struct kernfs_node *kn; in internal_create_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()
432 struct kernfs_node *entry; in compat_only_sysfs_link_entry_to_kobj()
433 struct kernfs_node *link; in compat_only_sysfs_link_entry_to_kobj()
471 struct kernfs_node *kn; in sysfs_group_attrs_change_owner()
[all …]
A Dfile.c262 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()
489 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns()
504 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_self()
505 struct kernfs_node *kn; in sysfs_remove_file_self()
537 struct kernfs_node *parent; in sysfs_remove_file_from_group()
613 struct kernfs_node *kn = NULL; in sysfs_link_change_owner()
[all …]
A 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()
A Dmount.c24 struct kernfs_node *sysfs_root_kn;
/linux-6.3-rc2/drivers/md/
A Dmd.h127 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.3-rc2/kernel/cgroup/
A Dcgroup-internal.h229 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.3-rc2/arch/x86/kernel/cpu/resctrl/
A Drdtgroup.c46 static struct kernfs_node *kn_info;
49 static struct kernfs_node *kn_mongrp;
207 struct kernfs_node *kn; in rdtgroup_add_file()
1912 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict()
1992 struct kernfs_node *kn_subdir; in rdtgroup_mkdir_info_resdir()
2062 struct kernfs_node *kn; in mongroup_create_dir()
2784 struct kernfs_node *kn; in mon_addfile()
2826 struct kernfs_node *kn; in mkdir_mondata_subdir()
2927 struct kernfs_node *kn; in mkdir_mondata_all()
3143 struct kernfs_node *kn; in mkdir_rdt_prepare()
[all …]
A Dinternal.h164 struct kernfs_node *mon_data_kn;
223 struct kernfs_node *kn;
509 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn);
510 void rdtgroup_kn_unlock(struct kernfs_node *kn);
/linux-6.3-rc2/Documentation/networking/
A 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.
/linux-6.3-rc2/drivers/nvdimm/
A Dpmem.h25 struct kernfs_node *bb_state;
/linux-6.3-rc2/drivers/acpi/nfit/
A Dnfit.h214 struct kernfs_node *flags_attr;
254 struct kernfs_node *scrub_count_state;
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A 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()
234 static ino_t get_inode_from_kernfs(struct kernfs_node* node) in get_inode_from_kernfs()
256 struct kernfs_node* root_kernfs = in populate_cgroup_info()
258 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in populate_cgroup_info()
641 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in raw_tracepoint__sched_process_exit()

Completed in 75 milliseconds

12