| /kernel/linux/linux-6.6/fs/kernfs/ |
| D | dir.c | 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() 138 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked() local 196 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() 242 void pr_cont_kernfs_name(struct kernfs_node *kn) in pr_cont_kernfs_name() 260 void pr_cont_kernfs_path(struct kernfs_node *kn) in pr_cont_kernfs_path() 292 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn) in kernfs_get_parent() 329 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() [all …]
|
| 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() local 141 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_listxattr() local 167 static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_refresh_inode() 188 struct kernfs_node *kn = inode->i_private; in kernfs_iop_getattr() local 199 static void kernfs_init_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_init_inode() [all …]
|
| D | file.c | 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() 91 kernfs_deref_open_node_locked(struct kernfs_node *kn) in kernfs_deref_open_node_locked() 106 static const struct kernfs_ops *kernfs_ops(struct kernfs_node *kn) in kernfs_ops() 563 static int kernfs_get_open_node(struct kernfs_node *kn, in kernfs_get_open_node() 607 static void kernfs_unlink_open_file(struct kernfs_node *kn, in kernfs_unlink_open_file() 643 struct kernfs_node *kn = inode->i_private; in kernfs_fop_open() local 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() local 815 bool kernfs_should_drain_open_files(struct kernfs_node *kn) in kernfs_should_drain_open_files() [all …]
|
| D | symlink.c | 29 struct kernfs_node *kn; in kernfs_create_link() local 59 struct kernfs_node *base, *kn; in kernfs_get_target_path() local 113 struct kernfs_node *kn = inode->i_private; in kernfs_getlink() local
|
| D | mount.c | 69 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() local 86 struct kernfs_node *kn; in __kernfs_fh_to_dentry() local 149 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() local 207 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry()
|
| D | kernfs-internal.h | 36 struct kernfs_node *kn; member 67 static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn) in kernfs_root()
|
| /kernel/linux/linux-5.10/fs/kernfs/ |
| D | dir.c | 35 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active() 41 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep() 50 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() 134 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked() local 191 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() 237 void pr_cont_kernfs_name(struct kernfs_node *kn) in pr_cont_kernfs_name() 255 void pr_cont_kernfs_path(struct kernfs_node *kn) in pr_cont_kernfs_path() 287 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn) in kernfs_get_parent() 324 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() 356 static int kernfs_link_sibling(struct kernfs_node *kn) in kernfs_link_sibling() [all …]
|
| D | inode.c | 33 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() local 143 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_listxattr() local 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() local 200 static void kernfs_init_inode(struct kernfs_node *kn, struct inode *inode) in kernfs_init_inode() [all …]
|
| D | file.c | 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() local 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() local 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() local 831 struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry); in kernfs_fop_poll() local 848 struct kernfs_node *kn; in kernfs_notify_workfn() local [all …]
|
| D | symlink.c | 29 struct kernfs_node *kn; in kernfs_create_link() local 60 struct kernfs_node *base, *kn; in kernfs_get_target_path() local 114 struct kernfs_node *kn = inode->i_private; in kernfs_getlink() local
|
| D | mount.c | 59 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() local 76 struct kernfs_node *kn; in __kernfs_fh_to_dentry() local 139 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() local 195 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry()
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | kernfs.h | 253 struct kernfs_node *kn; member 337 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() 360 static inline ino_t kernfs_ino(struct kernfs_node *kn) in kernfs_ino() 365 static inline ino_t kernfs_gen(struct kernfs_node *kn) in kernfs_gen() 378 static inline void kernfs_enable_ns(struct kernfs_node *kn) in kernfs_enable_ns() 391 static inline bool kernfs_ns_enabled(struct kernfs_node *kn) in kernfs_ns_enabled() 466 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() 469 static inline void kernfs_enable_ns(struct kernfs_node *kn) { } in kernfs_enable_ns() 471 static inline bool kernfs_ns_enabled(struct kernfs_node *kn) in kernfs_ns_enabled() 474 static inline int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() [all …]
|
| D | sysfs.h | 340 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 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() 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()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | kernfs.h | 182 struct kernfs_node *kn; member 199 struct kernfs_node *kn; member 287 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() 310 static inline ino_t kernfs_ino(struct kernfs_node *kn) in kernfs_ino() 315 static inline ino_t kernfs_gen(struct kernfs_node *kn) in kernfs_gen() 328 static inline void kernfs_enable_ns(struct kernfs_node *kn) in kernfs_enable_ns() 341 static inline bool kernfs_ns_enabled(struct kernfs_node *kn) in kernfs_ns_enabled() 415 static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) in kernfs_type() 418 static inline void kernfs_enable_ns(struct kernfs_node *kn) { } in kernfs_enable_ns() 420 static inline bool kernfs_ns_enabled(struct kernfs_node *kn) in kernfs_ns_enabled() [all …]
|
| D | sysfs.h | 316 static inline void sysfs_enable_ns(struct kernfs_node *kn) in sysfs_enable_ns() 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() 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()
|
| /kernel/linux/linux-6.6/fs/sysfs/ |
| D | dir.c | 42 struct kernfs_node *parent, *kn; in sysfs_create_dir_ns() local 81 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir() local 120 struct kernfs_node *kn = kobj->sd; in sysfs_move_dir_ns() local 136 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() local
|
| 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() local 262 struct kernfs_node *kn; in sysfs_add_file_mode_ns() local 311 struct kernfs_node *kn; in sysfs_add_bin_file_mode_ns() local 416 struct kernfs_node *kn; in sysfs_chmod_file() local 447 struct kernfs_node *kn; in sysfs_break_active_protection() local 470 void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection() 507 struct kernfs_node *kn; in sysfs_remove_file_self() local 587 static int internal_change_owner(struct kernfs_node *kn, kuid_t kuid, in internal_change_owner() 615 struct kernfs_node *kn = NULL; in sysfs_link_change_owner() local [all …]
|
| D | symlink.c | 24 struct kernfs_node *kn, *target = NULL; in sysfs_do_create_link_sd() local 61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd() 169 struct kernfs_node *parent, *kn = NULL; in sysfs_rename_link_ns() local
|
| D | group.c | 110 struct kernfs_node *kn; in internal_create_group() local 277 struct kernfs_node *kn; in sysfs_remove_group() local 475 struct kernfs_node *kn; in sysfs_group_attrs_change_owner() local
|
| /kernel/linux/linux-5.10/fs/sysfs/ |
| D | dir.c | 42 struct kernfs_node *parent, *kn; in sysfs_create_dir_ns() local 82 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir() local 121 struct kernfs_node *kn = kobj->sd; in sysfs_move_dir_ns() local 137 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() local
|
| D | file.c | 26 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() local 252 struct kernfs_node *kn; in sysfs_add_file_mode_ns() local 395 struct kernfs_node *kn; in sysfs_chmod_file() local 426 struct kernfs_node *kn; in sysfs_break_active_protection() local 449 void sysfs_unbreak_active_protection(struct kernfs_node *kn) in sysfs_unbreak_active_protection() 486 struct kernfs_node *kn; in sysfs_remove_file_self() local 566 static int internal_change_owner(struct kernfs_node *kn, kuid_t kuid, in internal_change_owner() 594 struct kernfs_node *kn = NULL; in sysfs_link_change_owner() local 633 struct kernfs_node *kn; in sysfs_file_change_owner() local
|
| D | symlink.c | 24 struct kernfs_node *kn, *target = NULL; in sysfs_do_create_link_sd() local 61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd() 169 struct kernfs_node *parent, *kn = NULL; in sysfs_rename_link_ns() local
|
| D | group.c | 111 struct kernfs_node *kn; in internal_create_group() local 274 struct kernfs_node *kn; in sysfs_remove_group() local 472 struct kernfs_node *kn; in sysfs_group_attrs_change_owner() local
|
| /kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
| D | rdtgroup.c | 189 static int rdtgroup_kn_set_ugid(struct kernfs_node *kn) in rdtgroup_kn_set_ugid() 204 struct kernfs_node *kn; in rdtgroup_add_file() local 1614 static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags) in rdtgroup_add_files() 1689 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict() local 1728 struct kernfs_node *kn, *parent; in rdtgroup_kn_mode_restore() local 1836 struct kernfs_node *kn; in mongroup_create_dir() local 2026 static struct rdtgroup *kernfs_to_rdtgroup(struct kernfs_node *kn) in kernfs_to_rdtgroup() 2044 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn) in rdtgroup_kn_lock_live() 2063 void rdtgroup_kn_unlock(struct kernfs_node *kn) in rdtgroup_kn_unlock() 2443 struct kernfs_node *kn; in mon_addfile() local [all …]
|
| /kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/ |
| D | rdtgroup.c | 205 static int rdtgroup_kn_set_ugid(struct kernfs_node *kn) in rdtgroup_kn_set_ugid() 220 struct kernfs_node *kn; in rdtgroup_add_file() local 1847 static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags) in rdtgroup_add_files() 1931 struct kernfs_node *kn; in rdtgroup_kn_mode_restrict() local 1970 struct kernfs_node *kn, *parent; in rdtgroup_kn_mode_restore() local 2081 struct kernfs_node *kn; in mongroup_create_dir() local 2292 static struct rdtgroup *kernfs_to_rdtgroup(struct kernfs_node *kn) in kernfs_to_rdtgroup() 2310 static void rdtgroup_kn_get(struct rdtgroup *rdtgrp, struct kernfs_node *kn) in rdtgroup_kn_get() 2316 static void rdtgroup_kn_put(struct rdtgroup *rdtgrp, struct kernfs_node *kn) in rdtgroup_kn_put() 2330 struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn) in rdtgroup_kn_lock_live() [all …]
|