/linux-4.1.27/include/linux/ |
D | kobject.h | 67 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 …]
|
D | iscsi_boot_sysfs.h | 106 struct kset *kset; member
|
D | slub_def.h | 91 struct kset *memcg_kset;
|
D | module.h | 625 extern struct kset *module_kset;
|
D | efi.h | 1068 struct kset *kset; member
|
D | device.h | 195 extern struct kset *bus_get_kset(struct bus_type *bus);
|
D | netdevice.h | 1606 struct kset *queues_kset;
|
/linux-4.1.27/lib/ |
D | kobject.c | 166 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 …]
|
D | kobject_uevent.c | 96 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/ |
D | kobject.txt | 36 - 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/ |
D | base.h | 29 struct kset subsys; 30 struct kset *devices_kset; 34 struct kset *drivers_kset; 41 struct kset glue_dirs; 135 extern struct kset *devices_kset;
|
D | core.c | 273 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 …]
|
D | bus.c | 25 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()
|
D | class.c | 86 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/ |
D | masklog.c | 133 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()
|
D | sys.c | 55 static struct kset *o2cb_kset;
|
D | masklog.h | 218 int mlog_sys_init(struct kset *o2cb_subsys);
|
/linux-4.1.27/fs/exofs/ |
D | sys.c | 57 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/ |
D | Makefile | 1 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
|
D | kset-example.c | 195 static struct kset *example_kset; 214 foo->kobj.kset = example_kset; in create_foo_obj()
|
/linux-4.1.27/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 319 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/ |
D | slot.c | 15 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()
|
D | pci.h | 189 extern struct kset *pci_slots_kset;
|
/linux-4.1.27/drivers/firmware/efi/ |
D | runtime-map.c | 106 static struct kset *map_kset; 131 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
|
D | efivars.c | 86 static struct kset *efivars_kset; 569 new_var->kobj.kset = efivars_kset; in efivar_create_sysfs_entry()
|
/linux-4.1.27/drivers/firmware/ |
D | memmap.c | 185 static struct kset *mmap_kset; in add_sysfs_fw_map_entry() 196 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
|
D | dmi-sysfs.c | 570 static struct kset *dmi_kset; 600 entry->kobj.kset = dmi_kset; in dmi_sysfs_register_handle()
|
D | edd.c | 634 static struct kset *edd_kset; 724 edev->kobj.kset = edd_kset; in edd_device_register()
|
/linux-4.1.27/drivers/of/ |
D | of_private.h | 36 extern struct kset *of_kset;
|
D | base.c | 42 struct kset *of_kset; 171 np->kobj.kset = of_kset; in __of_attach_node_sysfs()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | opal-elog.c | 91 static struct kset *elog_kset; 194 elog->kobj.kset = elog_kset; in create_elog_obj()
|
D | opal-dump.c | 155 static struct kset *dump_kset; 331 dump->kobj.kset = dump_kset; in create_dump_obj()
|
/linux-4.1.27/fs/gfs2/ |
D | sys.c | 60 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/ |
D | lockspace.c | 195 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/ |
D | sclp_ocf.c | 34 static struct kset *ocf_kset;
|
D | sclp_cpi_sys.c | 384 static struct kset *cpi_kset;
|
/linux-4.1.27/kernel/ |
D | params.c | 752 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;
|
D | module.c | 1611 mod->mkobj.kobj.kset = module_kset; in mod_sysfs_init()
|
/linux-4.1.27/fs/nilfs2/ |
D | sysfs.c | 29 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/ |
D | pm.h | 118 extern struct kset power_subsys;
|
/linux-4.1.27/arch/s390/kernel/ |
D | ipl.c | 527 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/ |
D | pcrypt.c | 60 static struct kset *pcrypt_kset; 442 pinst->kobj.kset = pcrypt_kset; in pcrypt_sysfs_add()
|
/linux-4.1.27/fs/btrfs/ |
D | sysfs.c | 662 static struct kset *btrfs_kset; 675 fs_info->super_kobj.kset = btrfs_kset; in btrfs_sysfs_add_one()
|
/linux-4.1.27/drivers/parisc/ |
D | pdc_stable.c | 962 static struct kset *paths_kset; 992 entry->kobj.kset = paths_kset; in pdcs_register_pathentries()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_super.c | 63 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/ |
D | iommu.c | 36 static struct kset *iommu_group_kset; 168 group->kobj.kset = iommu_group_kset; in iommu_group_alloc()
|
/linux-4.1.27/fs/ocfs2/ |
D | stackglue.c | 632 static struct kset *ocfs2_kset;
|
/linux-4.1.27/fs/f2fs/ |
D | super.c | 40 static struct kset *f2fs_kset; 1159 sbi->s_kobj.kset = f2fs_kset; in f2fs_fill_super()
|
/linux-4.1.27/net/core/ |
D | net-sysfs.c | 872 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/ |
D | slub.c | 5097 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/ |
D | eeh-pci-error-recovery.txt | 272 kset->uevent_ops->uevent() // which is really just
|
/linux-4.1.27/fs/ext4/ |
D | super.c | 57 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()
|