Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dkobject.h67 struct kset *kset; member
133 int (* const filter)(struct kset *kset, struct kobject *kobj);
134 const char *(* const name)(struct kset *kset, struct kobject *kobj);
135 int (* const uevent)(struct kset *kset, struct kobject *kobj,
168 struct kset { struct
175 extern void kset_init(struct kset *kset); argument
176 extern int __must_check kset_register(struct kset *kset);
177 extern void kset_unregister(struct kset *kset);
178 extern struct kset * __must_check kset_create_and_add(const char *name,
182 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.h758 extern struct kset *module_kset;
Defi.h1105 struct kset *kset; member
Ddevice.h195 extern struct kset *bus_get_kset(struct bus_type *bus);
Dnetdevice.h1642 struct kset *queues_kset;
/linux-4.4.14/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.4.14/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.4.14/drivers/base/
Dbase.h29 struct kset subsys;
30 struct kset *devices_kset;
34 struct kset *drivers_kset;
41 struct kset glue_dirs;
136 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.c26 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;
695 priv->kobj.kset = bus->p->drivers_kset; in bus_add_driver()
907 priv->subsys.kobj.kset = bus_kset; in bus_register()
999 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.4.14/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.h200 int mlog_sys_init(struct kset *o2cb_subsys);
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/pci/
Dslot.c15 struct kset *pci_slots_kset;
301 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
400 struct kset *pci_bus_kset; in pci_slot_init()
Dpci.h214 extern struct kset *pci_slots_kset;
/linux-4.4.14/drivers/firmware/efi/
Druntime-map.c106 static struct kset *map_kset;
131 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
Desrt.c165 static struct kset *esrt_kset;
178 entry->kobj.kset = esrt_kset; in esre_create_sysfs_entry()
Defivars.c86 static struct kset *efivars_kset;
569 new_var->kobj.kset = efivars_kset; in efivar_create_sysfs_entry()
/linux-4.4.14/drivers/firmware/
Dmemmap.c187 static struct kset *mmap_kset; in add_sysfs_fw_map_entry()
198 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
Ddmi-sysfs.c569 static struct kset *dmi_kset;
599 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.4.14/fs/ext4/
Dsysfs.c342 static struct kset ext4_kset = {
352 .kset = &ext4_kset,
391 sbi->s_kobj.kset = &ext4_kset; in ext4_register_sysfs()
/linux-4.4.14/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.4.14/arch/powerpc/platforms/powernv/
Dopal-elog.c92 static struct kset *elog_kset;
195 elog->kobj.kset = elog_kset; in create_elog_obj()
Dopal-dump.c156 static struct kset *dump_kset;
332 dump->kobj.kset = dump_kset; in create_dump_obj()
/linux-4.4.14/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.4.14/fs/gfs2/
Dsys.c60 static struct kset *gfs2_kset;
661 sdp->sd_kobj.kset = gfs2_kset; in gfs2_sys_fs_add()
709 static int gfs2_uevent(struct kset *kset, struct kobject *kobj, in gfs2_uevent() argument
/linux-4.4.14/drivers/s390/char/
Dsclp_ocf.c34 static struct kset *ocf_kset;
Dsclp_cpi_sys.c384 static struct kset *cpi_kset;
/linux-4.4.14/kernel/
Dparams.c812 mk->kobj.kset = module_kset; in locate_module_kobject()
968 static int uevent_filter(struct kset *kset, struct kobject *kobj) in uevent_filter() argument
981 struct kset *module_kset;
Dmodule.c1774 mod->mkobj.kobj.kset = module_kset; in mod_sysfs_init()
/linux-4.4.14/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.4.14/arch/arm/mach-omap1/
Dpm.h118 extern struct kset power_subsys;
/linux-4.4.14/crypto/
Dpcrypt.c61 static struct kset *pcrypt_kset;
394 pinst->kobj.kset = pcrypt_kset; in pcrypt_sysfs_add()
/linux-4.4.14/drivers/staging/most/mostcore/
Dcore.c524 static struct kset *most_channel_kset;
543 c->kobj.kset = most_channel_kset; in create_most_c_obj()
723 static struct kset *most_inst_kset;
742 inst->kobj.kset = most_inst_kset; in create_most_inst_obj()
1084 static struct kset *most_aim_kset;
1102 most_aim->kobj.kset = most_aim_kset; in create_most_aim_obj()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpc_internal.h83 int ptlrpc_sysfs_register_service(struct kset *parent,
Dlproc_ptlrpc.c1055 if (svc->srv_kobj.kset) { in ptlrpc_sysfs_unregister_service()
1061 int ptlrpc_sysfs_register_service(struct kset *parent, in ptlrpc_sysfs_register_service()
1066 svc->srv_kobj.kset = parent; in ptlrpc_sysfs_register_service()
Dservice.c540 struct kset *parent, in ptlrpc_register_service()
/linux-4.4.14/arch/s390/kernel/
Dipl.c562 static struct kset *ipl_kset;
1040 static struct kset *reipl_kset;
1041 static struct kset *reipl_fcp_kset;
1420 static struct kset *dump_kset;
1595 static struct kset *vmcmd_kset;
1658 static struct kset *shutdown_actions_kset;
/linux-4.4.14/drivers/parisc/
Dpdc_stable.c962 static struct kset *paths_kset;
992 entry->kobj.kset = paths_kset; in pdcs_register_pathentries()
/linux-4.4.14/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()
1865 xfsstats.xs_kobj.kobject.kset = xfs_kset; in init_xfs_fs()
1879 xfs_dbg_kobj.kobject.kset = xfs_kset; in init_xfs_fs()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_internal.h163 extern struct kset *ldlm_ns_kset;
Dldlm_lockd.c62 struct kset *ldlm_ns_kset;
63 static struct kset *ldlm_svc_kset;
Dldlm_resource.c397 ns->ns_kobj.kset = ldlm_ns_kset; in ldlm_namespace_sysfs_register()
/linux-4.4.14/fs/btrfs/
Dsysfs.c715 static struct kset *btrfs_kset;
733 fs_devs->fsid_kobj.kset = btrfs_kset; in btrfs_sysfs_add_fsid()
/linux-4.4.14/fs/ocfs2/
Dstackglue.c632 static struct kset *ocfs2_kset;
/linux-4.4.14/drivers/iommu/
Diommu.c36 static struct kset *iommu_group_kset;
184 group->kobj.kset = iommu_group_kset; in iommu_group_alloc()
/linux-4.4.14/fs/f2fs/
Dsuper.c40 static struct kset *f2fs_kset;
1307 sbi->s_kobj.kset = f2fs_kset; in f2fs_fill_super()
/linux-4.4.14/net/core/
Dnet-sysfs.c892 kobj->kset = dev->queues_kset; in rx_queue_add_kobject()
1284 kobj->kset = dev->queues_kset; in netdev_queue_add_kobject()
/linux-4.4.14/mm/
Dslub.c5312 static int uevent_filter(struct kset *kset, struct kobject *kobj) in uevent_filter() argument
5325 static struct kset *slab_kset;
5327 static inline struct kset *cache_kset(struct kmem_cache *s) in cache_kset()
5395 s->kobj.kset = cache_kset(s); in sysfs_slab_add()
/linux-4.4.14/Documentation/DocBook/
Ddevice-drivers.xml.db199 API-kset-register
200 API-kset-unregister
201 API-kset-create-and-add
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dllite_internal.h637 extern struct kset *llite_kset;
Dlproc_llite.c1061 sbi->ll_kobj.kset = llite_kset; in ldebugfs_register_mountpoint()
Dllite_lib.c61 struct kset *llite_kset;
/linux-4.4.14/Documentation/powerpc/
Deeh-pci-error-recovery.txt272 kset->uevent_ops->uevent() // which is really just
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_net.h2505 struct kset *parent,