Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dkobject.h67 struct kset *kset; member
132 int (* const filter)(struct kset *kset, struct kobject *kobj);
133 const char *(* const name)(struct kset *kset, struct kobject *kobj);
134 int (* const uevent)(struct kset *kset, struct kobject *kobj,
167 struct kset { struct
174 extern void kset_init(struct kset *kset); argument
175 extern int __must_check kset_register(struct kset *kset);
176 extern void kset_unregister(struct kset *kset);
177 extern struct kset * __must_check kset_create_and_add(const char *name,
181 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
[all …]
Discsi_boot_sysfs.h106 struct kset *kset; member
Dslub_def.h91 struct kset *memcg_kset;
Dmodule.h625 extern struct kset *module_kset;
Defi.h1068 struct kset *kset; member
Ddevice.h195 extern struct kset *bus_get_kset(struct bus_type *bus);
Dnetdevice.h1606 struct kset *queues_kset;
/linux-4.1.27/lib/
Dkobject.c166 if (!kobj->kset) in kobj_kset_join()
169 kset_get(kobj->kset); in kobj_kset_join()
170 spin_lock(&kobj->kset->list_lock); in kobj_kset_join()
171 list_add_tail(&kobj->entry, &kobj->kset->list); in kobj_kset_join()
172 spin_unlock(&kobj->kset->list_lock); in kobj_kset_join()
178 if (!kobj->kset) in kobj_kset_leave()
181 spin_lock(&kobj->kset->list_lock); in kobj_kset_leave()
183 spin_unlock(&kobj->kset->list_lock); in kobj_kset_leave()
184 kset_put(kobj->kset); in kobj_kset_leave()
217 if (kobj->kset) { in kobject_add_internal()
[all …]
Dkobject_uevent.c96 if (!ops && kobj->kset) { in kobj_bcast_filter()
97 ksobj = &kobj->kset->kobj; in kobj_bcast_filter()
172 struct kset *kset; in kobject_uevent_env() local
185 while (!top_kobj->kset && top_kobj->parent) in kobject_uevent_env()
188 if (!top_kobj->kset) { in kobject_uevent_env()
195 kset = top_kobj->kset; in kobject_uevent_env()
196 uevent_ops = kset->uevent_ops; in kobject_uevent_env()
207 if (!uevent_ops->filter(kset, kobj)) { in kobject_uevent_env()
216 subsystem = uevent_ops->name(kset, kobj); in kobject_uevent_env()
218 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
[all …]
/linux-4.1.27/Documentation/
Dkobject.txt36 - A kset is a group of kobjects. These kobjects can be of the same ktype
37 or belong to different ktypes. The kset is the basic container type for
39 safely ignore that implementation detail as the kset core code handles
43 of those directories corresponds to a kobject in the same kset.
128 properly. If the kobject is to be associated with a specific kset,
129 kobj->kset must be assigned before calling kobject_add(). If a kset is
132 kset itself.
310 A kset is merely a collection of kobjects that want to be associated with
314 A kset serves these functions:
316 - It serves as a bag containing a group of objects. A kset can be used by
[all …]
/linux-4.1.27/drivers/base/
Dbase.h29 struct kset subsys;
30 struct kset *devices_kset;
34 struct kset *drivers_kset;
41 struct kset glue_dirs;
135 extern struct kset *devices_kset;
Dcore.c273 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter() argument
287 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name() argument
298 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent() argument
375 struct kset *kset; in uevent_show() local
383 while (!top_kobj->kset && top_kobj->parent) in uevent_show()
385 if (!top_kobj->kset) in uevent_show()
388 kset = top_kobj->kset; in uevent_show()
389 if (!kset->uevent_ops || !kset->uevent_ops->uevent) in uevent_show()
393 if (kset->uevent_ops && kset->uevent_ops->filter) in uevent_show()
394 if (!kset->uevent_ops->filter(kset, &dev->kobj)) in uevent_show()
[all …]
Dbus.c25 static struct kset *system_kset;
164 static int bus_uevent_filter(struct kset *kset, struct kobject *kobj) in bus_uevent_filter() argument
177 static struct kset *bus_kset;
686 priv->kobj.kset = bus->p->drivers_kset; in bus_add_driver()
892 priv->subsys.kobj.kset = bus_kset; in bus_register()
984 struct kset *bus_get_kset(struct bus_type *bus) in bus_get_kset()
Dclass.c86 static struct kset *class_kset;
193 cp->subsys.kobj.kset = class_kset; in __class_register()
195 cp->subsys.kobj.kset = class_kset; in __class_register()
/linux-4.1.27/fs/ocfs2/cluster/
Dmasklog.c133 static struct kset mlog_kset = {
137 int mlog_sys_init(struct kset *o2cb_kset) in mlog_sys_init()
148 mlog_kset.kobj.kset = o2cb_kset; in mlog_sys_init()
Dsys.c55 static struct kset *o2cb_kset;
Dmasklog.h218 int mlog_sys_init(struct kset *o2cb_subsys);
/linux-4.1.27/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.1.27/samples/kobject/
DMakefile1 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
Dkset-example.c195 static struct kset *example_kset;
214 foo->kobj.kset = example_kset; in create_foo_obj()
/linux-4.1.27/drivers/scsi/
Discsi_boot_sysfs.c319 boot_kobj->kobj.kset = boot_kset->kset; in iscsi_boot_create_kobj()
445 boot_kset->kset = kset_create_and_add(set_name, NULL, firmware_kobj); in iscsi_boot_create_kset()
446 if (!boot_kset->kset) { in iscsi_boot_create_kset()
492 kset_unregister(boot_kset->kset); in iscsi_boot_destroy_kset()
/linux-4.1.27/drivers/pci/
Dslot.c15 struct kset *pci_slots_kset;
288 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
385 struct kset *pci_bus_kset; in pci_slot_init()
Dpci.h189 extern struct kset *pci_slots_kset;
/linux-4.1.27/drivers/firmware/efi/
Druntime-map.c106 static struct kset *map_kset;
131 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
Defivars.c86 static struct kset *efivars_kset;
569 new_var->kobj.kset = efivars_kset; in efivar_create_sysfs_entry()
/linux-4.1.27/drivers/firmware/
Dmemmap.c185 static struct kset *mmap_kset; in add_sysfs_fw_map_entry()
196 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
Ddmi-sysfs.c570 static struct kset *dmi_kset;
600 entry->kobj.kset = dmi_kset; in dmi_sysfs_register_handle()
Dedd.c634 static struct kset *edd_kset;
724 edev->kobj.kset = edd_kset; in edd_device_register()
/linux-4.1.27/drivers/of/
Dof_private.h36 extern struct kset *of_kset;
Dbase.c42 struct kset *of_kset;
171 np->kobj.kset = of_kset; in __of_attach_node_sysfs()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-elog.c91 static struct kset *elog_kset;
194 elog->kobj.kset = elog_kset; in create_elog_obj()
Dopal-dump.c155 static struct kset *dump_kset;
331 dump->kobj.kset = dump_kset; in create_dump_obj()
/linux-4.1.27/fs/gfs2/
Dsys.c60 static struct kset *gfs2_kset;
631 sdp->sd_kobj.kset = gfs2_kset; in gfs2_sys_fs_add()
679 static int gfs2_uevent(struct kset *kset, struct kobject *kobj, in gfs2_uevent() argument
/linux-4.1.27/fs/dlm/
Dlockspace.c195 static struct kset *dlm_kset;
227 static int dlm_uevent(struct kset *kset, struct kobject *kobj, in dlm_uevent() argument
629 ls->ls_kobj.kset = dlm_kset; in new_lockspace()
/linux-4.1.27/drivers/s390/char/
Dsclp_ocf.c34 static struct kset *ocf_kset;
Dsclp_cpi_sys.c384 static struct kset *cpi_kset;
/linux-4.1.27/kernel/
Dparams.c752 mk->kobj.kset = module_kset; in locate_module_kobject()
907 static int uevent_filter(struct kset *kset, struct kobject *kobj) in uevent_filter() argument
920 struct kset *module_kset;
Dmodule.c1611 mod->mkobj.kobj.kset = module_kset; in mod_sysfs_init()
/linux-4.1.27/fs/nilfs2/
Dsysfs.c29 static struct kset *nilfs_kset;
101 kobj->kset = nilfs_kset; \
206 root->snapshot_kobj.kset = nilfs_kset; in nilfs_sysfs_create_snapshot_group()
1006 nilfs->ns_dev_kobj.kset = nilfs_kset; in nilfs_sysfs_create_device_group()
/linux-4.1.27/arch/arm/mach-omap1/
Dpm.h118 extern struct kset power_subsys;
/linux-4.1.27/arch/s390/kernel/
Dipl.c527 static struct kset *ipl_kset;
1014 static struct kset *reipl_kset;
1015 static struct kset *reipl_fcp_kset;
1395 static struct kset *dump_kset;
1570 static struct kset *vmcmd_kset;
1633 static struct kset *shutdown_actions_kset;
/linux-4.1.27/crypto/
Dpcrypt.c60 static struct kset *pcrypt_kset;
442 pinst->kobj.kset = pcrypt_kset; in pcrypt_sysfs_add()
/linux-4.1.27/fs/btrfs/
Dsysfs.c662 static struct kset *btrfs_kset;
675 fs_info->super_kobj.kset = btrfs_kset; in btrfs_sysfs_add_one()
/linux-4.1.27/drivers/parisc/
Dpdc_stable.c962 static struct kset *paths_kset;
992 entry->kobj.kset = paths_kset; in pdcs_register_pathentries()
/linux-4.1.27/fs/xfs/
Dxfs_super.c63 static struct kset *xfs_kset; /* top-level xfs sysfs dir */
1455 mp->m_kobj.kobject.kset = xfs_kset; in xfs_fs_fill_super()
1838 xfs_dbg_kobj.kobject.kset = xfs_kset; in init_xfs_fs()
/linux-4.1.27/drivers/iommu/
Diommu.c36 static struct kset *iommu_group_kset;
168 group->kobj.kset = iommu_group_kset; in iommu_group_alloc()
/linux-4.1.27/fs/ocfs2/
Dstackglue.c632 static struct kset *ocfs2_kset;
/linux-4.1.27/fs/f2fs/
Dsuper.c40 static struct kset *f2fs_kset;
1159 sbi->s_kobj.kset = f2fs_kset; in f2fs_fill_super()
/linux-4.1.27/net/core/
Dnet-sysfs.c872 kobj->kset = dev->queues_kset; in rx_queue_add_kobject()
1267 kobj->kset = dev->queues_kset; in netdev_queue_add_kobject()
/linux-4.1.27/mm/
Dslub.c5097 static int uevent_filter(struct kset *kset, struct kobject *kobj) in uevent_filter() argument
5110 static struct kset *slab_kset;
5112 static inline struct kset *cache_kset(struct kmem_cache *s) in cache_kset()
5180 s->kobj.kset = cache_kset(s); in sysfs_slab_add()
/linux-4.1.27/Documentation/powerpc/
Deeh-pci-error-recovery.txt272 kset->uevent_ops->uevent() // which is really just
/linux-4.1.27/fs/ext4/
Dsuper.c57 static struct kset *ext4_kset;
4235 sbi->s_kobj.kset = ext4_kset; in ext4_fill_super()
5601 ef->f_kobj.kset = ext4_kset; in ext4_init_feat_adverts()