Home
last modified time | relevance | path

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

123456

/Linux-v6.6/fs/xfs/
Dxfs_sysfs.h10 extern const struct kobj_type xfs_mp_ktype; /* xfs_mount */
11 extern const struct kobj_type xfs_dbg_ktype; /* debug */
12 extern const struct kobj_type xfs_log_ktype; /* xlog */
13 extern const struct kobj_type xfs_stats_ktype; /* stats */
31 const struct kobj_type *ktype, in xfs_sysfs_init()
Dxfs_sysfs.c72 const struct kobj_type xfs_mp_ktype = {
269 const struct kobj_type xfs_dbg_ktype = {
327 const struct kobj_type xfs_stats_ktype = {
413 const struct kobj_type xfs_log_ktype = {
567 static const struct kobj_type xfs_error_cfg_ktype = {
573 static const struct kobj_type xfs_error_ktype = {
/Linux-v6.6/include/linux/
Dkobject.h69 const struct kobj_type *ktype;
92 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
97 const struct kobj_type *ktype,
116 struct kobj_type { struct
196 static inline const struct kobj_type *get_ktype(const struct kobject *kobj) in get_ktype()
/Linux-v6.6/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 {
268 类型)。每个kobject都需要有一个相关的kobj_type结构;当你调用
272 当然,kobj_type结构中的release字段是指向这种类型的kobject的release()
/Linux-v6.6/mm/damon/
Dsysfs-common.h24 extern const struct kobj_type damon_sysfs_ul_range_ktype;
39 extern const struct kobj_type damon_sysfs_schemes_ktype;
Dsysfs.c84 static const struct kobj_type damon_sysfs_region_ktype = {
201 static const struct kobj_type damon_sysfs_regions_ktype = {
280 static const struct kobj_type damon_sysfs_target_ktype = {
405 static const struct kobj_type damon_sysfs_targets_ktype = {
533 static const struct kobj_type damon_sysfs_intervals_ktype = {
615 static const struct kobj_type damon_sysfs_attrs_ktype = {
803 static const struct kobj_type damon_sysfs_context_ktype = {
929 static const struct kobj_type damon_sysfs_contexts_ktype = {
1584 static const struct kobj_type damon_sysfs_kdamond_ktype = {
1727 static const struct kobj_type damon_sysfs_kdamonds_ktype = {
[all …]
Dsysfs-schemes.c106 static const struct kobj_type damon_sysfs_scheme_region_ktype = {
171 static const struct kobj_type damon_sysfs_scheme_regions_ktype = {
270 static const struct kobj_type damon_sysfs_stats_ktype = {
475 static const struct kobj_type damon_sysfs_scheme_filter_ktype = {
594 static const struct kobj_type damon_sysfs_scheme_filters_ktype = {
769 static const struct kobj_type damon_sysfs_watermarks_ktype = {
880 static const struct kobj_type damon_sysfs_weights_ktype = {
1011 static const struct kobj_type damon_sysfs_quotas_ktype = {
1110 static const struct kobj_type damon_sysfs_access_pattern_ktype = {
1370 static const struct kobj_type damon_sysfs_scheme_ktype = {
[all …]
Dsysfs-common.c102 const struct kobj_type damon_sysfs_ul_range_ktype = {
/Linux-v6.6/fs/nfs/
Dsysfs.c35 static struct kobj_type nfs_kset_type = {
143 static struct kobj_type nfs_netns_client_type = {
163 static struct kobj_type nfs_netns_object_type = {
305 static struct kobj_type nfs_sb_ktype = {
/Linux-v6.6/fs/erofs/
Dsysfs.c182 static const struct kobj_type erofs_sb_ktype = {
188 static const struct kobj_type erofs_ktype = {
196 static const struct kobj_type erofs_feat_ktype = {
/Linux-v6.6/drivers/cpufreq/
Dcpufreq_governor.h127 struct kobj_type kobj_type; member
Dcpufreq_governor.c459 gov->kobj_type.sysfs_ops = &governor_sysfs_ops; in cpufreq_dbs_governor_init()
460 gov->kobj_type.release = cpufreq_dbs_data_release; in cpufreq_dbs_governor_init()
461 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
/Linux-v6.6/lib/
Dkobject.c69 const struct kobj_type *ktype = get_ktype(kobj); in create_dir()
331 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init()
446 int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, in kobject_init_and_add()
587 const struct kobj_type *ktype; in __kobject_del()
663 const struct kobj_type *t = get_ktype(kobj); in kobject_cleanup()
744 static const struct kobj_type dynamic_kobj_ktype = {
933 static const struct kobj_type kset_ktype = {
/Linux-v6.6/block/
Dblk-mq-sysfs.c130 static const struct kobj_type blk_mq_ktype = {
134 static const struct kobj_type blk_mq_ctx_ktype = {
138 static const struct kobj_type blk_mq_hw_ktype = {
Dblk-ia-ranges.c78 static const struct kobj_type blk_ia_range_ktype = {
97 static const struct kobj_type blk_ia_ranges_ktype = {
/Linux-v6.6/fs/ubifs/
Dsysfs.c77 static const struct kobj_type ubifs_sb_ktype = {
83 static const struct kobj_type ubifs_ktype = {
/Linux-v6.6/drivers/md/bcache/
Dbcache.h1007 extern const struct kobj_type bch_cached_dev_ktype;
1008 extern const struct kobj_type bch_flash_dev_ktype;
1009 extern const struct kobj_type bch_cache_set_ktype;
1010 extern const struct kobj_type bch_cache_set_internal_ktype;
1011 extern const struct kobj_type bch_cache_ktype;
/Linux-v6.6/drivers/dma/ioat/
Dsysfs.c75 void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type) in ioat_kobject_add()
163 struct kobj_type ioat_ktype = {
/Linux-v6.6/arch/powerpc/platforms/pseries/
Dvas-sysfs.c165 static struct kobj_type vas_def_attr_type = {
171 static struct kobj_type vas_qos_attr_type = {
/Linux-v6.6/fs/orangefs/
Dorangefs-sysfs.c907 static struct kobj_type orangefs_ktype = {
954 static struct kobj_type acache_orangefs_ktype = {
1001 static struct kobj_type capcache_orangefs_ktype = {
1048 static struct kobj_type ccache_orangefs_ktype = {
1095 static struct kobj_type ncache_orangefs_ktype = {
1135 static struct kobj_type pc_orangefs_ktype = {
1168 static struct kobj_type stats_orangefs_ktype = {
/Linux-v6.6/drivers/block/rnbd/
Drnbd-srv-sysfs.c36 static struct kobj_type dev_ktype = {
187 static struct kobj_type rnbd_srv_sess_dev_ktype = {
/Linux-v6.6/net/sunrpc/
Dsysfs.c39 static const struct kobj_type rpc_sysfs_object_type = {
431 static const struct kobj_type rpc_sysfs_client_type = {
437 static const struct kobj_type rpc_sysfs_xprt_switch_type = {
444 static const struct kobj_type rpc_sysfs_xprt_type = {
/Linux-v6.6/scripts/
Dconst_structs.checkpatch38 kobj_type
/Linux-v6.6/drivers/gpu/drm/i915/gt/
Dintel_gt_sysfs.c75 static const struct kobj_type kobj_gt_type = {
/Linux-v6.6/drivers/infiniband/ulp/rtrs/
Drtrs-srv-sysfs.c24 static struct kobj_type ktype = {
227 static struct kobj_type ktype_stats = {

123456