Home
last modified time | relevance | path

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

1234

/linux/Documentation/translations/zh_CN/core-api/
A Dkobject.rst44 于同一个kset中的一个kobject。
121 联,在调用kobject_add()之前必须分配kobj->kset。如果kset与kobject相关联,则
287 一个kset有以下功能:
292 - kset也是sysfs中的一个子目录,与kset相关的kobjects可以在这里显示
302 kset在一个标准的内核链表中保存它的子对象。Kobjects通过其kset字段指向其
303 包含的kset。在几乎所有的情况下,属于一个kset的kobjects在它们的父
313 当你完成对kset的处理后,调用::
318 为零时,该kset将被释放。因为对该kset的其他引用可能仍然存在,
321 一个使用kset的例子可以在内核树中的 ``samples/kobject/kset-example.c``
350 如果属于一个kset的kobject没有父kobject集,它将被添加到kset的目
[all …]
/linux/include/linux/
A Dkobject.h68 struct kset *kset; member
156 int (* const filter)(struct kset *kset, struct kobject *kobj);
157 const char *(* const name)(struct kset *kset, struct kobject *kobj);
158 int (* const uevent)(struct kset *kset, struct kobject *kobj,
191 struct kset { struct
198 extern void kset_init(struct kset *kset); argument
199 extern int __must_check kset_register(struct kset *kset);
200 extern void kset_unregister(struct kset *kset);
205 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
210 static inline struct kset *kset_get(struct kset *k) in kset_get()
[all …]
A Discsi_boot_sysfs.h105 struct kset *kset; member
/linux/lib/
A Dkobject.c253 kobj->kset ? kobject_name(&kobj->kset->kobj) : "<NULL>"); in kobject_add_internal()
929 struct kset *kset = container_of(kobj, struct kset, kobj); in kset_release() local
932 kfree(kset); in kset_release()
966 struct kset *kset; in kset_create() local
969 kset = kzalloc(sizeof(*kset), GFP_KERNEL); in kset_create()
970 if (!kset) in kset_create()
986 kset->kobj.kset = NULL; in kset_create()
988 return kset; in kset_create()
1009 struct kset *kset; in kset_create_and_add() local
1013 if (!kset) in kset_create_and_add()
[all …]
A 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 …]
/linux/Documentation/core-api/
A Dkobject.rst132 kobj->kset must be assigned before calling kobject_add(). If a kset is
135 kset itself.
336 with the kset can show up. Every kset contains a kobject which can be
348 back to their containing kset via their kset field. In almost all cases,
349 the kobjects belonging to a kset have that kset (or, strictly, its embedded
354 kset use::
376 int (* const filter)(struct kset *kset, struct kobject *kobj);
377 const char *(* const name)(struct kset *kset, struct kobject *kobj);
378 int (* const uevent)(struct kset *kset, struct kobject *kobj,
397 kobject_add(), its kset member should point to the kset to which the
[all …]
/linux/fs/nfs/
A 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()
/linux/drivers/dma-buf/
A 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()
/linux/drivers/base/
A Dbase.h41 struct kset subsys;
42 struct kset *devices_kset;
46 struct kset *drivers_kset;
53 struct kset glue_dirs;
164 extern struct kset *devices_kset;
A Dcore.c2264 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter() argument
2278 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name() argument
2289 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent() argument
2366 struct kset *kset; in uevent_show() local
2376 if (!top_kobj->kset) in uevent_show()
2379 kset = top_kobj->kset; in uevent_show()
2380 if (!kset->uevent_ops || !kset->uevent_ops->uevent) in uevent_show()
2384 if (kset->uevent_ops && kset->uevent_ops->filter) in uevent_show()
2385 if (!kset->uevent_ops->filter(kset, &dev->kobj)) in uevent_show()
2393 retval = kset->uevent_ops->uevent(kset, &dev->kobj, env); in uevent_show()
[all …]
A 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;
610 priv->kobj.kset = bus->p->drivers_kset; in bus_add_driver()
800 priv->subsys.kobj.kset = bus_kset; in bus_register()
892 struct kset *bus_get_kset(struct bus_type *bus) in bus_get_kset()
/linux/drivers/firmware/
A Dqemu_fw_cfg.c493 static int fw_cfg_build_symlink(struct kset *dir, in fw_cfg_build_symlink()
497 struct kset *subdir; in fw_cfg_build_symlink()
534 subdir = kzalloc(sizeof(struct kset), GFP_KERNEL); in fw_cfg_build_symlink()
539 subdir->kobj.kset = dir; in fw_cfg_build_symlink()
563 static void fw_cfg_kset_unregister_recursive(struct kset *kset) in fw_cfg_kset_unregister_recursive() argument
567 list_for_each_entry_safe(k, next, &kset->list, entry) in fw_cfg_kset_unregister_recursive()
569 if (k->ktype == kset->kobj.ktype) in fw_cfg_kset_unregister_recursive()
573 kset_unregister(kset); in fw_cfg_kset_unregister_recursive()
579 static struct kset *fw_cfg_fname_kset;
/linux/net/sunrpc/
A Dsysfs.c25 static struct kset *rpc_sunrpc_kset;
46 struct kset *kset, in rpc_sysfs_object_alloc() argument
53 kobj->kset = kset; in rpc_sysfs_object_alloc()
470 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_client_alloc()
490 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_switch_alloc()
510 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_alloc()
/linux/drivers/platform/x86/
A Dthink-lmi.h67 struct kset *attribute_kset;
68 struct kset *authentication_kset;
/linux/fs/ocfs2/cluster/
A Dmasklog.c151 static struct kset mlog_kset = {
155 int mlog_sys_init(struct kset *o2cb_kset) in mlog_sys_init()
166 mlog_kset.kobj.kset = o2cb_kset; in mlog_sys_init()
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
A Dsysman.c352 static void destroy_attribute_objs(struct kset *kset) in destroy_attribute_objs() argument
356 list_for_each_entry_safe(pos, next, &kset->list, entry) { in destroy_attribute_objs()
399 struct kset *tmp_set; in init_bios_attributes()
470 attr_name_kobj->kset = tmp_set; in init_bios_attributes()
A Ddell-wmi-sysman.h72 struct kset *authentication_dir_kset;
73 struct kset *main_dir_kset;
/linux/drivers/net/phy/
A Dphylink.c1524 struct ethtool_link_ksettings *kset) in phylink_get_ksettings() argument
1528 kset->base.speed = state->speed; in phylink_get_ksettings()
1529 kset->base.duplex = state->duplex; in phylink_get_ksettings()
1544 struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_get() argument
1551 phy_ethtool_ksettings_get(pl->phydev, kset); in phylink_ethtool_ksettings_get()
1553 kset->base.port = pl->link_port; in phylink_ethtool_ksettings_get()
1564 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
1580 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
1594 const struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_set() argument
1631 switch (kset->base.autoneg) { in phylink_ethtool_ksettings_set()
[all …]
/linux/drivers/scsi/
A 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()
/linux/drivers/pci/
A Dslot.c15 struct kset *pci_slots_kset;
266 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
368 struct kset *pci_bus_kset; in pci_slot_init()
/linux/drivers/firmware/efi/
A Druntime-map.c101 static struct kset *map_kset;
126 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
/linux/samples/kobject/
A DMakefile2 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
A Dkset-example.c194 static struct kset *example_kset;
213 foo->kobj.kset = example_kset; in create_foo_obj()
/linux/scripts/gdb/linux/
A Ddevice.py30 def kset_for_each_object(kset): argument
31 return list_for_each_entry(kset['list'],
/linux/drivers/staging/greybus/
A Daudio_manager_private.h17 struct kset *manager_kset,

Completed in 61 milliseconds

1234