Home
last modified time | relevance | path

Searched refs:kobj_type (Results 1 – 25 of 117) sorted by relevance

12345

/Linux-v5.15/fs/xfs/
Dxfs_sysfs.h10 extern struct kobj_type xfs_mp_ktype; /* xfs_mount */
11 extern struct kobj_type xfs_dbg_ktype; /* debug */
12 extern struct kobj_type xfs_log_ktype; /* xlog */
13 extern struct kobj_type xfs_stats_ktype; /* stats */
31 struct kobj_type *ktype, in xfs_sysfs_init()
Dxfs_sysfs.c71 struct kobj_type xfs_mp_ktype = {
243 struct kobj_type xfs_dbg_ktype = {
300 struct kobj_type xfs_stats_ktype = {
385 struct kobj_type xfs_log_ktype = {
539 static struct kobj_type xfs_error_cfg_ktype = {
545 static struct kobj_type xfs_error_ktype = {
/Linux-v5.15/include/linux/
Dkobject.h69 struct kobj_type *ktype;
93 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
99 struct kobj_type *ktype, struct kobject *parent,
138 struct kobj_type { struct
221 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype()
/Linux-v5.15/Documentation/translations/zh_CN/core-api/
Dkobject.rst112 void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
114 ktype是正确创建kobject的必要条件,因为每个kobject都必须有一个相关的kobj_type
143 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype,
256 因此,让我们引入结构体kobj_type::
258 struct kobj_type {
269 类型)。每个kobject都需要有一个相关的kobj_type结构;当你调用
273 当然,kobj_type结构中的release字段是指向这种类型的kobject的release()
/Linux-v5.15/lib/
Dkobject.c68 struct kobj_type *t = get_ktype(kobj); in populate_dir()
85 const struct kobj_type *ktype = get_ktype(kobj); in create_dir()
349 void kobject_init(struct kobject *kobj, struct kobj_type *ktype) in kobject_init()
464 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, in kobject_init_and_add()
605 const struct kobj_type *ktype; in __kobject_del()
682 struct kobj_type *t = get_ktype(kobj); in kobject_cleanup()
764 static struct kobj_type dynamic_kobj_ktype = {
941 static struct kobj_type kset_ktype = {
/Linux-v5.15/drivers/cpufreq/
Dcpufreq_governor.h128 struct kobj_type kobj_type; member
Dcpufreq_governor.c449 gov->kobj_type.sysfs_ops = &governor_sysfs_ops; in cpufreq_dbs_governor_init()
450 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
/Linux-v5.15/drivers/md/bcache/
Dbcache.h1004 extern struct kobj_type bch_cached_dev_ktype;
1005 extern struct kobj_type bch_flash_dev_ktype;
1006 extern struct kobj_type bch_cache_set_ktype;
1007 extern struct kobj_type bch_cache_set_internal_ktype;
1008 extern struct kobj_type bch_cache_ktype;
Dsysfs.h6 struct kobj_type type ## _ktype = { \
/Linux-v5.15/block/
Dblk-mq-sysfs.c158 static struct kobj_type blk_mq_ktype = {
162 static struct kobj_type blk_mq_ctx_ktype = {
166 static struct kobj_type blk_mq_hw_ktype = {
/Linux-v5.15/fs/nfs/
Dsysfs.c34 static struct kobj_type nfs_netns_object_type = {
146 static struct kobj_type nfs_netns_client_type = {
/Linux-v5.15/drivers/dma/ioat/
Dsysfs.c75 void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type) in ioat_kobject_add()
162 struct kobj_type ioat_ktype = {
Ddma.h200 extern struct kobj_type ioat_ktype;
404 void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type);
/Linux-v5.15/fs/orangefs/
Dorangefs-sysfs.c898 static struct kobj_type orangefs_ktype = {
935 static struct kobj_type acache_orangefs_ktype = {
972 static struct kobj_type capcache_orangefs_ktype = {
1009 static struct kobj_type ccache_orangefs_ktype = {
1046 static struct kobj_type ncache_orangefs_ktype = {
1076 static struct kobj_type pc_orangefs_ktype = {
1099 static struct kobj_type stats_orangefs_ktype = {
/Linux-v5.15/drivers/block/rnbd/
Drnbd-srv-sysfs.c36 static struct kobj_type dev_ktype = {
189 static struct kobj_type rnbd_srv_sess_dev_ktype = {
/Linux-v5.15/net/sunrpc/
Dsysfs.c39 static struct kobj_type rpc_sysfs_object_type = {
430 static struct kobj_type rpc_sysfs_client_type = {
436 static struct kobj_type rpc_sysfs_xprt_switch_type = {
443 static struct kobj_type rpc_sysfs_xprt_type = {
/Linux-v5.15/drivers/infiniband/ulp/rtrs/
Drtrs-srv-sysfs.c24 static struct kobj_type ktype = {
225 static struct kobj_type ktype_stats = {
/Linux-v5.15/mm/
Dcma_sysfs.c67 static struct kobj_type cma_ktype = {
/Linux-v5.15/drivers/edac/
Dedac_device_sysfs.c217 static struct kobj_type ktype_device_ctrl = {
399 static struct kobj_type ktype_instance_ctrl = {
497 static struct kobj_type ktype_block_ctrl = {
/Linux-v5.15/arch/ia64/kernel/
Dtopology.c285 static struct kobj_type cache_ktype = {
290 static struct kobj_type cache_ktype_percpu_entry = {
/Linux-v5.15/drivers/dma-buf/
Ddma-buf-sysfs-stats.c115 static struct kobj_type dma_buf_ktype = {
/Linux-v5.15/drivers/cpuidle/
Dsysfs.c203 static struct kobj_type ktype_cpuidle = {
449 static struct kobj_type ktype_state_cpuidle = {
594 static struct kobj_type ktype_driver_cpuidle = {
/Linux-v5.15/drivers/md/
Ddm-sysfs.c121 static struct kobj_type dm_ktype = {
/Linux-v5.15/Documentation/core-api/
Dkobject.rst121 void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
124 must have an associated kobj_type. After calling kobject_init(), to
159 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype,
297 kobj_type::
299 struct kobj_type {
311 kobj_type structure; a pointer to that structure must be specified when you
314 The release field in struct kobj_type is, of course, a pointer to the
/Linux-v5.15/drivers/of/
Dkobj.c27 struct kobj_type of_node_ktype = {

12345