Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/
Dkobject.h68 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.h105 struct kset *kset; member
/kernel/linux/linux-5.10/lib/
Dkobject.c191 if (!kobj->kset) in kobj_kset_join()
194 kset_get(kobj->kset); in kobj_kset_join()
195 spin_lock(&kobj->kset->list_lock); in kobj_kset_join()
196 list_add_tail(&kobj->entry, &kobj->kset->list); in kobj_kset_join()
197 spin_unlock(&kobj->kset->list_lock); in kobj_kset_join()
203 if (!kobj->kset) in kobj_kset_leave()
206 spin_lock(&kobj->kset->list_lock); in kobj_kset_leave()
208 spin_unlock(&kobj->kset->list_lock); in kobj_kset_leave()
209 kset_put(kobj->kset); in kobj_kset_leave()
243 if (kobj->kset) { in kobject_add_internal()
[all …]
Dkobject_uevent.c393 if (!ops && kobj->kset) { in kobject_uevent_net_broadcast()
394 struct kobject *ksobj = &kobj->kset->kobj; in kobject_uevent_net_broadcast()
465 struct kset *kset; in kobject_uevent_env() local
482 while (!top_kobj->kset && top_kobj->parent) in kobject_uevent_env()
485 if (!top_kobj->kset) { in kobject_uevent_env()
492 kset = top_kobj->kset; in kobject_uevent_env()
493 uevent_ops = kset->uevent_ops; in kobject_uevent_env()
504 if (!uevent_ops->filter(kset, kobj)) { in kobject_uevent_env()
513 subsystem = uevent_ops->name(kset, kobj); in kobject_uevent_env()
515 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
[all …]
/kernel/linux/linux-5.10/Documentation/core-api/
Dkobject.rst36 - 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.
131 properly. If the kobject is to be associated with a specific kset,
132 kobj->kset must be assigned before calling kobject_add(). If a kset is
135 kset itself.
326 A kset is merely a collection of kobjects that want to be associated with
330 A kset serves these functions:
332 - It serves as a bag containing a group of objects. A kset can be used by
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dsysfs.c21 static struct kset *nfs_client_kset;
41 struct kset *kset, struct kobject *parent) in nfs_netns_object_alloc() argument
47 kobj->kset = kset; in nfs_netns_object_alloc()
161 p->kobject.kset = nfs_client_kset; in nfs_netns_client_alloc()
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-buf-sysfs-stats.c135 static int dmabuf_sysfs_uevent_filter(struct kset *kset, struct kobject *kobj) in dmabuf_sysfs_uevent_filter() argument
144 static struct kset *dma_buf_stats_kset;
145 static struct kset *dma_buf_per_buffer_stats_kset;
188 sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset; in dma_buf_stats_setup()
/kernel/linux/linux-5.10/drivers/base/
Dbase.h41 struct kset subsys;
42 struct kset *devices_kset;
46 struct kset *drivers_kset;
53 struct kset glue_dirs;
161 extern struct kset *devices_kset;
Dcore.c1868 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter() argument
1882 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name() argument
1893 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent() argument
1970 struct kset *kset; in uevent_show() local
1978 while (!top_kobj->kset && top_kobj->parent) in uevent_show()
1980 if (!top_kobj->kset) in uevent_show()
1983 kset = top_kobj->kset; in uevent_show()
1984 if (!kset->uevent_ops || !kset->uevent_ops->uevent) in uevent_show()
1988 if (kset->uevent_ops && kset->uevent_ops->filter) in uevent_show()
1989 if (!kset->uevent_ops->filter(kset, &dev->kobj)) in uevent_show()
[all …]
Dbus.c25 static struct kset *system_kset;
166 static int bus_uevent_filter(struct kset *kset, struct kobject *kobj) in bus_uevent_filter() argument
179 static struct kset *bus_kset;
614 priv->kobj.kset = bus->p->drivers_kset; in bus_add_driver()
823 priv->subsys.kobj.kset = bus_kset; in bus_register()
915 struct kset *bus_get_kset(struct bus_type *bus) in bus_get_kset()
Dclass.c85 static struct kset *class_kset;
180 cp->subsys.kobj.kset = class_kset; in __class_register()
182 cp->subsys.kobj.kset = class_kset; in __class_register()
/kernel/linux/linux-5.10/drivers/firmware/
Dqemu_fw_cfg.c490 static int fw_cfg_build_symlink(struct kset *dir, in fw_cfg_build_symlink()
494 struct kset *subdir; in fw_cfg_build_symlink()
531 subdir = kzalloc(sizeof(struct kset), GFP_KERNEL); in fw_cfg_build_symlink()
536 subdir->kobj.kset = dir; in fw_cfg_build_symlink()
560 static void fw_cfg_kset_unregister_recursive(struct kset *kset) in fw_cfg_kset_unregister_recursive() argument
564 list_for_each_entry_safe(k, next, &kset->list, entry) in fw_cfg_kset_unregister_recursive()
566 if (k->ktype == kset->kobj.ktype) in fw_cfg_kset_unregister_recursive()
570 kset_unregister(kset); in fw_cfg_kset_unregister_recursive()
576 static struct kset *fw_cfg_fname_kset;
Dmemmap.c178 static struct kset *mmap_kset; in add_sysfs_fw_map_entry()
189 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
/kernel/linux/linux-5.10/fs/ocfs2/cluster/
Dmasklog.c153 static struct kset mlog_kset = {
157 int mlog_sys_init(struct kset *o2cb_kset) in mlog_sys_init()
168 mlog_kset.kobj.kset = o2cb_kset; in mlog_sys_init()
Dsys.c40 static struct kset *o2cb_kset;
/kernel/linux/linux-5.10/drivers/net/phy/
Dphylink.c1354 struct ethtool_link_ksettings *kset) in phylink_get_ksettings() argument
1356 phylink_merge_link_mode(kset->link_modes.advertising, state->advertising); in phylink_get_ksettings()
1357 linkmode_copy(kset->link_modes.lp_advertising, state->lp_advertising); in phylink_get_ksettings()
1358 kset->base.speed = state->speed; in phylink_get_ksettings()
1359 kset->base.duplex = state->duplex; in phylink_get_ksettings()
1360 kset->base.autoneg = state->an_enabled ? AUTONEG_ENABLE : in phylink_get_ksettings()
1374 struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_get() argument
1381 phy_ethtool_ksettings_get(pl->phydev, kset); in phylink_ethtool_ksettings_get()
1383 kset->base.port = pl->link_port; in phylink_ethtool_ksettings_get()
1386 linkmode_copy(kset->link_modes.supported, pl->supported); in phylink_ethtool_ksettings_get()
[all …]
/kernel/linux/linux-5.10/samples/kobject/
DMakefile2 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
Dkset-example.c194 static struct kset *example_kset;
213 foo->kobj.kset = example_kset; in create_foo_obj()
/kernel/linux/linux-5.10/drivers/scsi/
Discsi_boot_sysfs.c352 boot_kobj->kobj.kset = boot_kset->kset; in iscsi_boot_create_kobj()
504 boot_kset->kset = kset_create_and_add(set_name, NULL, firmware_kobj); in iscsi_boot_create_kset()
505 if (!boot_kset->kset) { in iscsi_boot_create_kset()
551 kset_unregister(boot_kset->kset); in iscsi_boot_destroy_kset()
/kernel/linux/linux-5.10/drivers/staging/greybus/
Daudio_manager_private.h17 struct kset *manager_kset,
Daudio_manager_module.c185 struct kset *manager_kset, in gb_audio_manager_module_create()
205 m->kobj.kset = manager_kset; in gb_audio_manager_module_create()
/kernel/linux/linux-5.10/drivers/pci/
Dslot.c15 struct kset *pci_slots_kset;
266 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
367 struct kset *pci_bus_kset; in pci_slot_init()
/kernel/linux/linux-5.10/drivers/firmware/efi/
Druntime-map.c101 static struct kset *map_kset;
126 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
/kernel/linux/linux-5.10/scripts/gdb/linux/
Ddevice.py30 def kset_for_each_object(kset): argument
31 return list_for_each_entry(kset['list'],
/kernel/linux/linux-5.10/drivers/vfio/mdev/
Dmdev_private.h21 struct kset *mdev_types_kset;

123