Home
last modified time | relevance | path

Searched refs:kset (Results 1 – 25 of 39) sorted by relevance

12

/linux-4.19.296/include/linux/
Dkobject.h69 struct kset *kset; member
157 int (* const filter)(struct kset *kset, struct kobject *kobj);
158 const char *(* const name)(struct kset *kset, struct kobject *kobj);
159 int (* const uevent)(struct kset *kset, struct kobject *kobj,
192 struct kset { struct
199 extern void kset_init(struct kset *kset); argument
200 extern int __must_check kset_register(struct kset *kset);
201 extern void kset_unregister(struct kset *kset);
202 extern struct kset * __must_check kset_create_and_add(const char *name,
206 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
[all …]
Discsi_boot_sysfs.h113 struct kset *kset; member
Dslub_def.h116 struct kset *memcg_kset;
/linux-4.19.296/lib/
Dkobject.c183 if (!kobj->kset) in kobj_kset_join()
186 kset_get(kobj->kset); in kobj_kset_join()
187 spin_lock(&kobj->kset->list_lock); in kobj_kset_join()
188 list_add_tail(&kobj->entry, &kobj->kset->list); in kobj_kset_join()
189 spin_unlock(&kobj->kset->list_lock); in kobj_kset_join()
195 if (!kobj->kset) in kobj_kset_leave()
198 spin_lock(&kobj->kset->list_lock); in kobj_kset_leave()
200 spin_unlock(&kobj->kset->list_lock); in kobj_kset_leave()
201 kset_put(kobj->kset); in kobj_kset_leave()
235 if (kobj->kset) { in kobject_add_internal()
[all …]
Dkobject_uevent.c392 if (!ops && kobj->kset) { in kobject_uevent_net_broadcast()
393 struct kobject *ksobj = &kobj->kset->kobj; in kobject_uevent_net_broadcast()
463 struct kset *kset; in kobject_uevent_env() local
480 while (!top_kobj->kset && top_kobj->parent) in kobject_uevent_env()
483 if (!top_kobj->kset) { in kobject_uevent_env()
490 kset = top_kobj->kset; in kobject_uevent_env()
491 uevent_ops = kset->uevent_ops; in kobject_uevent_env()
502 if (!uevent_ops->filter(kset, kobj)) { in kobject_uevent_env()
511 subsystem = uevent_ops->name(kset, kobj); in kobject_uevent_env()
513 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
[all …]
/linux-4.19.296/drivers/base/
Dbase.h30 struct kset subsys;
31 struct kset *devices_kset;
35 struct kset *drivers_kset;
42 struct kset glue_dirs;
139 extern struct kset *devices_kset;
Dcore.c1111 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter() argument
1125 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name() argument
1136 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent() argument
1213 struct kset *kset; in uevent_show() local
1221 while (!top_kobj->kset && top_kobj->parent) in uevent_show()
1223 if (!top_kobj->kset) in uevent_show()
1226 kset = top_kobj->kset; in uevent_show()
1227 if (!kset->uevent_ops || !kset->uevent_ops->uevent) in uevent_show()
1231 if (kset->uevent_ops && kset->uevent_ops->filter) in uevent_show()
1232 if (!kset->uevent_ops->filter(kset, &dev->kobj)) in uevent_show()
[all …]
Dbus.c24 static struct kset *system_kset;
165 static int bus_uevent_filter(struct kset *kset, struct kobject *kobj) in bus_uevent_filter() argument
178 static struct kset *bus_kset;
659 priv->kobj.kset = bus->p->drivers_kset; in bus_add_driver()
870 priv->subsys.kobj.kset = bus_kset; in bus_register()
962 struct kset *bus_get_kset(struct bus_type *bus) in bus_get_kset()
Dclass.c84 static struct kset *class_kset;
173 cp->subsys.kobj.kset = class_kset; in __class_register()
175 cp->subsys.kobj.kset = class_kset; in __class_register()
/linux-4.19.296/fs/ocfs2/cluster/
Dmasklog.c167 static struct kset mlog_kset = {
171 int mlog_sys_init(struct kset *o2cb_kset) in mlog_sys_init()
182 mlog_kset.kobj.kset = o2cb_kset; in mlog_sys_init()
Dsys.c55 static struct kset *o2cb_kset;
Dmasklog.h209 int mlog_sys_init(struct kset *o2cb_subsys);
/linux-4.19.296/fs/exofs/
Dsys.c57 static struct kset *exofs_kset;
161 s_kobj->kset = exofs_kset; in exofs_sysfs_sb_add()
181 d_kobj->kset = exofs_kset; in exofs_sysfs_odev_add()
/linux-4.19.296/drivers/pci/
Dslot.c15 struct kset *pci_slots_kset;
302 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
403 struct kset *pci_bus_kset; in pci_slot_init()
/linux-4.19.296/fs/gfs2/
Dsys.c61 static struct kset *gfs2_kset;
658 sdp->sd_kobj.kset = gfs2_kset; in gfs2_sys_fs_add()
706 static int gfs2_uevent(struct kset *kset, struct kobject *kobj, in gfs2_uevent() argument
/linux-4.19.296/fs/dlm/
Dlockspace.c197 static struct kset *dlm_kset;
229 static int dlm_uevent(struct kset *kset, struct kobject *kobj, in dlm_uevent() argument
639 ls->ls_kobj.kset = dlm_kset; in new_lockspace()
/linux-4.19.296/fs/ocfs2/
Dstackglue.h301 extern struct kset *ocfs2_kset;
/linux-4.19.296/drivers/s390/char/
Dsclp_ocf.c35 static struct kset *ocf_kset;
Dsclp_config.c153 struct kset *ofb_kset; in sclp_ofb_setup()
Dsclp_sd.c95 static struct kset *sclp_sd_kset;
507 sd_file->kobj.kset = sclp_sd_kset; in sclp_sd_file_create()
/linux-4.19.296/drivers/of/
Dof_private.h32 extern struct kset *of_kset;
Dkobj.c125 np->kobj.kset = of_kset; in __of_attach_node_sysfs()
/linux-4.19.296/fs/nilfs2/
Dsysfs.c20 static struct kset *nilfs_kset;
90 kobj->kset = nilfs_kset; \
195 root->snapshot_kobj.kset = nilfs_kset; in nilfs_sysfs_create_snapshot_group()
996 nilfs->ns_dev_kobj.kset = nilfs_kset; in nilfs_sysfs_create_device_group()
/linux-4.19.296/crypto/
Dpcrypt.c61 static struct kset *pcrypt_kset;
399 pinst->kobj.kset = pcrypt_kset; in pcrypt_sysfs_add()
/linux-4.19.296/fs/f2fs/
Dsysfs.c518 static struct kset f2fs_kset = {
528 .kset = &f2fs_kset,
683 sbi->s_kobj.kset = &f2fs_kset; in f2fs_register_sysfs()

12