Home
last modified time | relevance | path

Searched refs:kobject (Results 1 – 25 of 1043) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/include/linux/
Dsysfs.h25 struct kobject;
86 umode_t (*is_visible)(struct kobject *,
88 umode_t (*is_bin_visible)(struct kobject *,
172 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
174 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
176 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
231 ssize_t (*show)(struct kobject *, struct attribute *, char *);
232 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
237 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
238 void sysfs_remove_dir(struct kobject *kobj);
[all …]
Dkobject.h64 struct kobject { struct
67 struct kobject *parent; argument
83 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
85 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
88 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
93 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
95 int kobject_add(struct kobject *kobj, struct kobject *parent,
98 int kobject_init_and_add(struct kobject *kobj,
99 struct kobj_type *ktype, struct kobject *parent,
102 extern void kobject_del(struct kobject *kobj);
[all …]
/kernel/linux/linux-4.19/include/linux/
Dkobject.h65 struct kobject { struct
68 struct kobject *parent; argument
84 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
86 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
89 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
94 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
96 int kobject_add(struct kobject *kobj, struct kobject *parent,
99 int kobject_init_and_add(struct kobject *kobj,
100 struct kobj_type *ktype, struct kobject *parent,
103 extern void kobject_del(struct kobject *kobj);
[all …]
Dsysfs.h25 struct kobject;
86 umode_t (*is_visible)(struct kobject *,
88 umode_t (*is_bin_visible)(struct kobject *,
165 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
167 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
169 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
215 ssize_t (*show)(struct kobject *, struct attribute *, char *);
216 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
221 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
222 void sysfs_remove_dir(struct kobject *kobj);
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_sysfs.c18 ssize_t (*show)(struct kobject *kobject, char *buf);
19 ssize_t (*store)(struct kobject *kobject, const char *buf,
40 struct kobject *kobject, in xfs_sysfs_object_show() argument
46 return xfs_attr->show ? xfs_attr->show(kobject, buf) : 0; in xfs_sysfs_object_show()
51 struct kobject *kobject, in xfs_sysfs_object_store() argument
58 return xfs_attr->store ? xfs_attr->store(kobject, buf, count) : 0; in xfs_sysfs_object_store()
81 struct kobject *kobject, in bug_on_assert_store() argument
104 struct kobject *kobject, in bug_on_assert_show() argument
113 struct kobject *kobject, in log_recovery_delay_store() argument
134 struct kobject *kobject, in log_recovery_delay_show() argument
[all …]
Dxfs_sysfs.h16 to_kobj(struct kobject *kobject) in to_kobj() argument
18 return container_of(kobject, struct xfs_kobj, kobject); in to_kobj()
22 xfs_sysfs_release(struct kobject *kobject) in xfs_sysfs_release() argument
24 struct xfs_kobj *kobj = to_kobj(kobject); in xfs_sysfs_release()
35 struct kobject *parent; in xfs_sysfs_init()
37 parent = parent_kobj ? &parent_kobj->kobject : NULL; in xfs_sysfs_init()
39 return kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
46 kobject_del(&kobj->kobject); in xfs_sysfs_del()
47 kobject_put(&kobj->kobject); in xfs_sysfs_del()
/kernel/linux/linux-4.19/fs/xfs/
Dxfs_sysfs.c20 ssize_t (*show)(struct kobject *kobject, char *buf);
21 ssize_t (*store)(struct kobject *kobject, const char *buf,
42 struct kobject *kobject, in xfs_sysfs_object_show() argument
48 return xfs_attr->show ? xfs_attr->show(kobject, buf) : 0; in xfs_sysfs_object_show()
53 struct kobject *kobject, in xfs_sysfs_object_store() argument
60 return xfs_attr->store ? xfs_attr->store(kobject, buf, count) : 0; in xfs_sysfs_object_store()
74 to_mp(struct kobject *kobject) in to_mp() argument
76 struct xfs_kobj *kobj = to_kobj(kobject); in to_mp()
96 struct kobject *kobject, in bug_on_assert_store() argument
119 struct kobject *kobject, in bug_on_assert_show() argument
[all …]
Dxfs_sysfs.h16 to_kobj(struct kobject *kobject) in to_kobj() argument
18 return container_of(kobject, struct xfs_kobj, kobject); in to_kobj()
22 xfs_sysfs_release(struct kobject *kobject) in xfs_sysfs_release() argument
24 struct xfs_kobj *kobj = to_kobj(kobject); in xfs_sysfs_release()
35 struct kobject *parent; in xfs_sysfs_init()
37 parent = parent_kobj ? &parent_kobj->kobject : NULL; in xfs_sysfs_init()
39 return kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
46 kobject_del(&kobj->kobject); in xfs_sysfs_del()
47 kobject_put(&kobj->kobject); in xfs_sysfs_del()
/kernel/linux/linux-5.10/fs/nfs/
Dsysfs.c20 struct kobject *nfs_client_kobj;
23 static void nfs_netns_object_release(struct kobject *kobj) in nfs_netns_object_release()
29 struct kobject *kobj) in nfs_netns_object_child_ns_type()
40 static struct kobject *nfs_netns_object_alloc(const char *name, in nfs_netns_object_alloc()
41 struct kset *kset, struct kobject *parent) in nfs_netns_object_alloc()
43 struct kobject *kobj; in nfs_netns_object_alloc()
76 static ssize_t nfs_netns_identifier_show(struct kobject *kobj, in nfs_netns_identifier_show()
81 kobject); in nfs_netns_identifier_show()
98 static ssize_t nfs_netns_identifier_store(struct kobject *kobj, in nfs_netns_identifier_store()
104 kobject); in nfs_netns_identifier_store()
[all …]
/kernel/linux/linux-4.19/Documentation/
Dkobject.txt11 Part of the difficulty in understanding the driver model - and the kobject
19 - A kobject is an object of type struct kobject. Kobjects have a name
20 and a reference count. A kobject also has a parent pointer (allowing
28 No structure should EVER have more than one kobject embedded within it.
32 - A ktype is the type of object that embeds a kobject. Every structure
33 that embeds a kobject needs a corresponding ktype. The ktype controls
34 what happens to the kobject when it is created and destroyed.
40 this kobject automatically.
43 of those directories corresponds to a kobject in the same kset.
52 It is rare for kernel code to create a standalone kobject, with one major
[all …]
/kernel/linux/linux-5.10/Documentation/core-api/
Dkobject.rst11 Part of the difficulty in understanding the driver model - and the kobject
19 - A kobject is an object of type struct kobject. Kobjects have a name
20 and a reference count. A kobject also has a parent pointer (allowing
28 No structure should **EVER** have more than one kobject embedded within it.
32 - A ktype is the type of object that embeds a kobject. Every structure
33 that embeds a kobject needs a corresponding ktype. The ktype controls
34 what happens to the kobject when it is created and destroyed.
40 this kobject automatically.
43 of those directories corresponds to a kobject in the same kset.
52 It is rare for kernel code to create a standalone kobject, with one major
[all …]
/kernel/linux/linux-5.10/lib/
Dkobject.c28 const void *kobject_namespace(struct kobject *kobj) in kobject_namespace()
48 void kobject_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) in kobject_get_ownership()
66 static int populate_dir(struct kobject *kobj) in populate_dir()
83 static int create_dir(struct kobject *kobj) in create_dir()
129 static int get_kobj_path_length(struct kobject *kobj) in get_kobj_path_length()
132 struct kobject *parent = kobj; in get_kobj_path_length()
147 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path()
149 struct kobject *parent; in fill_kobj_path()
171 char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) in kobject_get_path()
189 static void kobj_kset_join(struct kobject *kobj) in kobj_kset_join()
[all …]
/kernel/linux/linux-4.19/lib/
Dkobject.c28 const void *kobject_namespace(struct kobject *kobj) in kobject_namespace()
48 void kobject_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) in kobject_get_ownership()
66 static int populate_dir(struct kobject *kobj) in populate_dir()
83 static int create_dir(struct kobject *kobj) in create_dir()
120 static int get_kobj_path_length(struct kobject *kobj) in get_kobj_path_length()
123 struct kobject *parent = kobj; in get_kobj_path_length()
138 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path()
140 struct kobject *parent; in fill_kobj_path()
163 char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) in kobject_get_path()
181 static void kobj_kset_join(struct kobject *kobj) in kobj_kset_join()
[all …]
/kernel/linux/linux-4.19/fs/sysfs/
Dsymlink.c21 struct kobject *target_kobj, in sysfs_do_create_link_sd()
60 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd()
66 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link()
88 int sysfs_create_link(struct kobject *kobj, struct kobject *target, in sysfs_create_link()
104 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, in sysfs_create_link_nowarn()
120 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link()
142 void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
165 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns()
/kernel/linux/linux-5.10/fs/sysfs/
Dsymlink.c21 struct kobject *target_kobj, in sysfs_do_create_link_sd()
61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd()
67 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link()
89 int sysfs_create_link(struct kobject *kobj, struct kobject *target, in sysfs_create_link()
105 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, in sysfs_create_link_nowarn()
121 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link()
143 void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
166 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns()
/kernel/linux/linux-4.19/kernel/
Dksysfs.c33 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
42 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
47 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store()
63 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
68 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
94 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
101 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show()
108 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show()
113 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store()
132 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
[all …]
/kernel/linux/linux-5.10/kernel/
Dksysfs.c31 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
40 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
45 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store()
61 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
66 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
92 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
99 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show()
106 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show()
111 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store()
130 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c15 struct kobject base;
19 static struct intel_engine_cs *kobj_to_engine(struct kobject *kobj) in kobj_to_engine()
25 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in name_show()
34 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in class_show()
43 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in inst_show()
52 mmio_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mmio_show()
127 caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in caps_show()
138 all_caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in all_caps_show()
147 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, in max_spin_store()
184 max_spin_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in max_spin_show()
[all …]
/kernel/linux/linux-5.10/kernel/power/
Dmain.c100 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show()
106 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store()
124 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_show()
166 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_store()
202 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show()
208 static ssize_t sync_on_suspend_store(struct kobject *kobj, in sync_on_suspend_store()
239 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show()
260 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store()
311 static ssize_t _name##_show(struct kobject *kobj, \
329 static ssize_t last_failed_dev_show(struct kobject *kobj, in last_failed_dev_show()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h97 struct kobject *kobj;
118 struct kobject *kobj;
136 struct kobject *kobj;
159 struct kobject *kobj_node;
160 struct kobject *kobj_mem;
161 struct kobject *kobj_cache;
162 struct kobject *kobj_iolink;
163 struct kobject *kobj_perf;
178 struct kobject *kobj_topology;
179 struct kobject *kobj_nodes;
/kernel/linux/linux-4.19/kernel/power/
Dmain.c87 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show()
93 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store()
111 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_show()
153 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_store()
194 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show()
215 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store()
355 static ssize_t pm_print_times_show(struct kobject *kobj, in pm_print_times_show()
361 static ssize_t pm_print_times_store(struct kobject *kobj, in pm_print_times_store()
384 static ssize_t pm_wakeup_irq_show(struct kobject *kobj, in pm_wakeup_irq_show()
395 static ssize_t pm_debug_messages_show(struct kobject *kobj, in pm_debug_messages_show()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Ddevice_node.c182 static ssize_t sbi_cmd_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_cmd_show()
215 static ssize_t sbi_cmd_store(struct kobject *kobj, struct sbi_attribute *attr, in sbi_cmd_store()
243 static ssize_t sbi_status_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_status_show()
276 static ssize_t sbi_status_store(struct kobject *kobj, in sbi_status_store()
286 static ssize_t sbi_stat_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_stat_show()
318 static ssize_t sbi_stat_store(struct kobject *kobj, struct sbi_attribute *attr, in sbi_stat_store()
345 static ssize_t sbi_dcache_precision_show(struct kobject *kobj, in sbi_dcache_precision_show()
353 static ssize_t sbi_dcache_precision_store(struct kobject *kobj, in sbi_dcache_precision_store()
376 static ssize_t sbi_dcache_threshold_show(struct kobject *kobj, in sbi_dcache_threshold_show()
383 static ssize_t sbi_dcache_threshold_store(struct kobject *kobj, in sbi_dcache_threshold_store()
[all …]
/kernel/linux/linux-4.19/Documentation/translations/zh_CN/filesystems/
Dsysfs.txt27 sysfs - 用于导出内核对象(kobject)的文件系统
42 sysfs 始终与 kobject 的底层结构紧密相关。请阅读
43 Documentation/kobject.txt 文档以获得更多关于 kobject 接口的
59 任何 kobject 在系统中注册,就会有一个目录在 sysfs 中被创建。这个
60 目录是作为该 kobject 的父对象所在目录的子目录创建的,以准确地传递
65 目录的 kobject 的指针。以前,这个 kobject 指针被 sysfs 直接用于
66 kobject 文件打开和关闭的引用计数。而现在的 sysfs 实现中,kobject
73 kobject 的属性可在文件系统中以普通文件的形式导出。Sysfs 为属性定义
94 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
95 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
[all …]
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/filesystems/
Dsysfs.txt27 sysfs - 用于导出内核对象(kobject)的文件系统
42 sysfs 始终与 kobject 的底层结构紧密相关。请阅读
43 Documentation/core-api/kobject.rst 文档以获得更多关于 kobject 接口的
59 任何 kobject 在系统中注册,就会有一个目录在 sysfs 中被创建。这个
60 目录是作为该 kobject 的父对象所在目录的子目录创建的,以准确地传递
65 目录的 kobject 的指针。以前,这个 kobject 指针被 sysfs 直接用于
66 kobject 文件打开和关闭的引用计数。而现在的 sysfs 实现中,kobject
73 kobject 的属性可在文件系统中以普通文件的形式导出。Sysfs 为属性定义
94 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
95 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
[all …]
/kernel/linux/linux-5.10/net/batman-adv/
Dsysfs.h36 ssize_t (*show)(struct kobject *kobj, struct attribute *attr,
43 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
51 int batadv_sysfs_add_hardif(struct kobject **hardif_obj,
53 void batadv_sysfs_del_hardif(struct kobject **hardif_obj);
70 static inline int batadv_sysfs_add_hardif(struct kobject **hardif_obj, in batadv_sysfs_add_hardif()
76 static inline void batadv_sysfs_del_hardif(struct kobject **hardif_obj) in batadv_sysfs_del_hardif()

12345678910>>...42