Home
last modified time | relevance | path

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

12345678910>>...25

/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/
A Dkobject.rst26 - 一个kobject是一个kobject结构体类型的对象。Kobjects有一个名字和一个
36 - ktype是嵌入一个kobject的对象的类型。每个嵌入kobject的结构体都需要一个
120 这将正确设置kobject的父级和kobject的名称。如果该kobject要与一个特定的kset相关
125 由于kobject的名字是在它被添加到内核时设置的,所以kobject的名字不应该被直接操作。
152 当一个kobject被注册到kobject核心后,你需要向全世界宣布它已经被创建了。这可以通
199 这个函数将创建一个kobject,并将其放在sysfs中指定的父kobject下面的位置。要创
243 有一点很重要:每个kobject都必须有一个release()方法,而且这个kobject
292 出来。每个kset都包含一个kobject,它可以被设置为其他kobject的父对象;
348 如果属于一个kset的kobject没有父kobject集,它将被添加到kset的目
350 之前分配了一个明确的父kobject,那么该kobject将被注册到kset中,
[all …]
/linux-6.3-rc2/include/linux/
A Dsysfs.h25 struct kobject;
293 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
296 struct kobject *target,
300 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
304 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
348 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
461 struct kobject *target, in sysfs_create_link_nowarn()
471 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
478 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
581 struct kobject *targ, in sysfs_link_change_owner()
[all …]
A Dkobject.h64 struct kobject { struct
67 struct kobject *parent; argument
95 int kobject_add(struct kobject *kobj, struct kobject *parent,
105 struct kobject *parent);
108 extern int __must_check kobject_move(struct kobject *, struct kobject *);
110 extern struct kobject *kobject_get(struct kobject *kobj);
112 struct kobject *kobj);
175 struct kobject kobj;
184 struct kobject *parent_kobj);
211 extern struct kobject *mm_kobj;
[all …]
/linux-6.3-rc2/fs/xfs/
A Dxfs_sysfs.c41 struct kobject *kobject, in xfs_sysfs_object_show() argument
52 struct kobject *kobject, in xfs_sysfs_object_store() argument
83 struct kobject *kobject, in bug_on_assert_store() argument
106 struct kobject *kobject, in bug_on_assert_show() argument
115 struct kobject *kobject, in log_recovery_delay_store() argument
136 struct kobject *kobject, in log_recovery_delay_show() argument
145 struct kobject *kobject, in mount_delay_store() argument
166 struct kobject *kobject, in mount_delay_show() argument
175 struct kobject *kobject, in always_cow_store() argument
189 struct kobject *kobject, in always_cow_show() argument
[all …]
A 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()
38 parent = parent_kobj ? &parent_kobj->kobject : NULL; in xfs_sysfs_init()
40 err = kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
42 kobject_put(&kobj->kobject); in xfs_sysfs_init()
51 kobject_del(&kobj->kobject); in xfs_sysfs_del()
52 kobject_put(&kobj->kobject); in xfs_sysfs_del()
/linux-6.3-rc2/net/sunrpc/
A Dsysfs.c47 struct kobject *parent) in rpc_sysfs_object_alloc()
49 struct kobject *kobj; in rpc_sysfs_object_alloc()
66 struct rpc_sysfs_xprt, kobject); in rpc_sysfs_xprt_kobj_get_xprt()
75 struct rpc_sysfs_xprt, kobject); in rpc_sysfs_xprt_kobj_get_xprt_switch()
397 kobject)->xprt->xprt_net; in rpc_sysfs_xprt_namespace()
470 kobject_put(&p->kobject); in rpc_sysfs_client_alloc()
492 kobject_put(&p->kobject); in rpc_sysfs_xprt_switch_alloc()
506 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_alloc()
511 kobject_put(&p->kobject); in rpc_sysfs_xprt_alloc()
622 kobject_del(&rpc_xprt->kobject); in rpc_sysfs_xprt_destroy()
[all …]
A Dsysfs.h9 struct kobject kobject; member
16 struct kobject kobject; member
23 struct kobject kobject; member
/linux-6.3-rc2/fs/nfs/
A Dsysfs.c20 struct kobject *nfs_client_kobj;
29 const struct kobject *kobj) in nfs_netns_object_child_ns_type()
41 struct kset *kset, struct kobject *parent) in nfs_netns_object_alloc()
43 struct kobject *kobj; in nfs_netns_object_alloc()
81 kobject); in nfs_netns_identifier_show()
104 kobject); in nfs_netns_identifier_store()
127 kobject); in nfs_netns_client_release()
162 p->kobject.kset = nfs_client_kset; in nfs_netns_client_alloc()
166 kobject_put(&p->kobject); in nfs_netns_client_alloc()
188 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy()
[all …]
/linux-6.3-rc2/Documentation/core-api/
A Dkobject.rst19 - A kobject is an object of type struct kobject. Kobjects have a name
123 The ktype is required for a kobject to be created properly, as every kobject
127 int kobject_add(struct kobject *kobj, struct kobject *parent,
130 This sets up the parent of the kobject and the name for the kobject
133 associated with a kobject, then the parent for the kobject can be set to
169 After a kobject has been registered with the kobject core, you need to
194 struct kobject *kobject_get(struct kobject *kobj);
241 See the example module, ``samples/kobject/kobject-example.c`` for an
398 If the kobject belonging to a kset has no parent kobject set, it will be
401 before the kobject is added, the kobject is registered with the kset, but
[all …]
/linux-6.3-rc2/lib/
A Dkobject.c204 struct kobject *parent; in kobject_add_internal()
402 int kobject_add(struct kobject *kobj, struct kobject *parent, in kobject_add()
530 int kobject_move(struct kobject *kobj, struct kobject *new_parent) in kobject_move()
613 struct kobject *parent; in kobject_del()
628 struct kobject *kobject_get(struct kobject *kobj) in kobject_get()
641 struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) in kobject_get_unless_zero()
703 struct kobject *kobj = container_of(kref, struct kobject, kref); in kobject_release()
758 struct kobject *kobj; in kobject_create()
781 struct kobject *kobject_create_and_add(const char *name, struct kobject *parent) in kobject_create_and_add()
783 struct kobject *kobj; in kobject_create_and_add()
[all …]
/linux-6.3-rc2/kernel/
A Dksysfs.c39 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
47 static ssize_t cpu_byteorder_show(struct kobject *kobj, in cpu_byteorder_show()
55 static ssize_t address_bits_show(struct kobject *kobj, in address_bits_show()
64 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
85 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
90 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
116 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
159 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
171 static ssize_t fscaps_show(struct kobject *kobj, in fscaps_show()
197 static ssize_t rcu_normal_show(struct kobject *kobj, in rcu_normal_show()
[all …]
/linux-6.3-rc2/fs/sysfs/
A 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()
A Dgroup.c171 int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
211 int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
229 int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
254 int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
269 void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
304 void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
325 int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
359 void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
427 struct kobject *target_kobj, in compat_only_sysfs_link_entry_to_kobj()
516 int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner()
[all …]
A Dfile.c28 struct kobject *kobj = kn->parent->priv; in sysfs_file_ops()
43 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show()
81 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read()
105 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_read()
131 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_write()
144 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_write()
165 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_mmap()
258 struct kobject *kobj = parent->priv; in sysfs_add_file_mode_ns()
470 struct kobject *kobj = kn->parent->priv; in sysfs_unbreak_active_protection()
558 int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
[all …]
A Ddir.c40 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
79 void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
105 int sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, in sysfs_rename_dir_ns()
117 int sysfs_move_dir_ns(struct kobject *kobj, struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
134 int sysfs_create_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_create_mount_point()
155 void sysfs_remove_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_remove_mount_point()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A 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()
143 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, in max_spin_store()
203 timeslice_store(struct kobject *kobj, struct kobj_attribute *attr, in timeslice_store()
257 stop_store(struct kobject *kobj, struct kobj_attribute *attr, in stop_store()
419 static void kobj_engine_release(struct kobject *kobj) in kobj_engine_release()
429 static struct kobject *
430 kobj_engine(struct kobject *dir, struct intel_engine_cs *engine) in kobj_engine()
505 struct kobject *dir; in intel_engines_add_sysfs()
[all …]
/linux-6.3-rc2/mm/damon/
A Dsysfs-schemes.c17 struct kobject kobj;
117 struct kobject kobj;
128 regions->kobj = (struct kobject){}; in damon_sysfs_scheme_regions_alloc()
167 struct kobject kobj;
266 struct kobject kobj;
398 struct kobject kobj;
517 struct kobject kobj;
692 struct kobject kobj;
803 struct kobject kobj;
934 struct kobject kobj;
[all …]
A Dsysfs.c19 struct kobject kobj;
95 struct kobject kobj;
212 struct kobject kobj;
291 struct kobject kobj;
416 struct kobject kobj;
544 struct kobject kobj;
633 struct kobject kobj;
814 struct kobject kobj;
940 struct kobject kobj;
1578 struct kobject kobj;
[all …]
A Dsysfs-common.c27 range->kobj = (struct kobject){}; in damon_sysfs_ul_range_alloc()
34 static ssize_t min_show(struct kobject *kobj, struct kobj_attribute *attr, in min_show()
43 static ssize_t min_store(struct kobject *kobj, struct kobj_attribute *attr, in min_store()
59 static ssize_t max_show(struct kobject *kobj, struct kobj_attribute *attr, in max_show()
68 static ssize_t max_store(struct kobject *kobj, struct kobj_attribute *attr, in max_store()
84 void damon_sysfs_ul_range_release(struct kobject *kobj) in damon_sysfs_ul_range_release()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_topology.h79 struct kobject *kobj;
97 struct kobject *kobj;
117 struct kobject *kobj;
139 struct kobject *kobj_node;
140 struct kobject *kobj_mem;
141 struct kobject *kobj_cache;
142 struct kobject *kobj_iolink;
143 struct kobject *kobj_p2plink;
144 struct kobject *kobj_perf;
159 struct kobject *kobj_topology;
[all …]
/linux-6.3-rc2/kernel/power/
A Dmain.c208 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show()
318 static ssize_t _name##_show(struct kobject *kobj, \
510 static ssize_t pm_wakeup_irq_show(struct kobject *kobj, in pm_wakeup_irq_show()
559 struct kobject *power_kobj;
682 static ssize_t wakeup_count_show(struct kobject *kobj, in wakeup_count_show()
724 static ssize_t autosleep_show(struct kobject *kobj, in autosleep_show()
745 static ssize_t autosleep_store(struct kobject *kobj, in autosleep_store()
767 static ssize_t wake_lock_show(struct kobject *kobj, in wake_lock_show()
774 static ssize_t wake_lock_store(struct kobject *kobj, in wake_lock_store()
784 static ssize_t wake_unlock_show(struct kobject *kobj, in wake_unlock_show()
[all …]
/linux-6.3-rc2/fs/btrfs/
A Dsysfs.c58 struct kobject kobj;
103 static struct kobject *get_btrfs_kobj(struct kobject *kobj);
1323 static struct kobject *get_btrfs_kobj(struct kobject *kobj) in get_btrfs_kobj()
1619 struct kobject *kobj; in btrfs_sysfs_remove_space_info()
1671 struct kobject *devices_kobj; in btrfs_sysfs_remove_device()
1844 struct kobject *devices_kobj; in btrfs_sysfs_add_device()
1845 struct kobject *devinfo_kobj; in btrfs_sysfs_add_device()
1997 struct kobject *fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_add_mounted()
2143 static void qgroups_release(struct kobject *kobj) in qgroups_release()
2211 static void qgroup_release(struct kobject *kobj) in qgroup_release()
[all …]
/linux-6.3-rc2/drivers/platform/x86/dell/dell-wmi-sysman/
A Ddell-wmi-sysman.h27 struct kobject *attr_name_kobj;
38 struct kobject *attr_name_kobj;
50 struct kobject *attr_name_kobj;
61 struct kobject *attr_name_kobj;
102 static int get_##type##_instance_id(struct kobject *kobj) \
113 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
123 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
133 static ssize_t curr_val##_store(struct kobject *kobj, \
163 struct kobject *attr_name_kobj, u32 enum_property_count);
168 struct kobject *attr_name_kobj);
[all …]
/linux-6.3-rc2/Documentation/translations/zh_CN/filesystems/
A 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 为属性定义
142 ssize_t (*show)(struct kobject *, struct attribute *, char *);
147 描述符,并在此保存 sysfs_ops 的指针。更多的信息参见 kobject
[all …]
/linux-6.3-rc2/Documentation/translations/zh_TW/filesystems/
A Dsysfs.txt30 sysfs - 用於導出內核對象(kobject)的文件系統
45 sysfs 始終與 kobject 的底層結構緊密相關。請閱讀
46 Documentation/core-api/kobject.rst 文檔以獲得更多關於 kobject 接口的
62 任何 kobject 在系統中註冊,就會有一個目錄在 sysfs 中被創建。這個
63 目錄是作爲該 kobject 的父對象所在目錄的子目錄創建的,以準確地傳遞
68 目錄的 kobject 的指針。以前,這個 kobject 指針被 sysfs 直接用於
69 kobject 文件打開和關閉的引用計數。而現在的 sysfs 實現中,kobject
76 kobject 的屬性可在文件系統中以普通文件的形式導出。Sysfs 爲屬性定義
145 ssize_t (*show)(struct kobject *, struct attribute *, char *);
150 描述符,並在此保存 sysfs_ops 的指針。更多的信息參見 kobject
[all …]

Completed in 52 milliseconds

12345678910>>...25