Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/
A Dkobject.rst44 于同一个kset中的一个kobject。
121 联,在调用kobject_add()之前必须分配kobj->kset。如果kset与kobject相关联,则
286 一个kset有以下功能:
291 - kset也是sysfs中的一个子目录,与kset相关的kobjects可以在这里显示
301 kset在一个标准的内核链表中保存它的子对象。Kobjects通过其kset字段指向其
302 包含的kset。在几乎所有的情况下,属于一个kset的kobjects在它们的父
312 当你完成对kset的处理后,调用::
317 为零时,该kset将被释放。因为对该kset的其他引用可能仍然存在,
320 一个使用kset的例子可以在内核树中的 ``samples/kobject/kset-example.c``
348 如果属于一个kset的kobject没有父kobject集,它将被添加到kset的目
[all …]
/linux-6.3-rc2/lib/
A Dkobject.c229 kobj->kset ? kobject_name(&kobj->kset->kobj) : "<NULL>"); in kobject_add_internal()
912 struct kset *kset = container_of(kobj, struct kset, kobj); in kset_release() local
915 kfree(kset); in kset_release()
949 struct kset *kset; in kset_create() local
952 kset = kzalloc(sizeof(*kset), GFP_KERNEL); in kset_create()
953 if (!kset) in kset_create()
969 kset->kobj.kset = NULL; in kset_create()
971 return kset; in kset_create()
992 struct kset *kset; in kset_create_and_add() local
996 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()
515 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
/linux-6.3-rc2/include/linux/
A Dkobject.h68 struct kset *kset; member
172 struct kset { struct
179 extern void kset_init(struct kset *kset); argument
180 extern int __must_check kset_register(struct kset *kset);
181 extern void kset_unregister(struct kset *kset);
182 extern struct kset * __must_check kset_create_and_add(const char *name,
186 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
188 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
191 static inline struct kset *kset_get(struct kset *k) in kset_get()
196 static inline void kset_put(struct kset *k) in kset_put()
[all …]
A Discsi_boot_sysfs.h105 struct kset *kset; member
/linux-6.3-rc2/Documentation/core-api/
A Dkobject.rst132 kobj->kset must be assigned before calling kobject_add(). If a kset is
135 kset itself.
329 A kset serves these functions:
335 with the kset can show up. Every kset contains a kobject which can be
347 back to their containing kset via their kset field. In almost all cases,
348 the kobjects belonging to a kset have that kset (or, strictly, its embedded
353 kset use::
359 When you are finished with the kset, call::
361 void kset_unregister(struct kset *k);
395 kobject_add(), its kset member should point to the kset to which the
[all …]
/linux-6.3-rc2/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()
162 p->kobject.kset = nfs_client_kset; in nfs_netns_client_alloc()
/linux-6.3-rc2/drivers/base/
A Dbase.h41 struct kset subsys;
42 struct kset *devices_kset;
46 struct kset *drivers_kset;
53 struct kset glue_dirs;
182 extern struct kset *devices_kset;
A Dbus.c26 static struct kset *system_kset;
29 static struct kset *bus_kset;
74 struct kset *kset = container_of(kobj, struct kset, kobj); in bus_to_subsys() local
76 sp = container_of_const(kset, struct subsys_private, subsys); in bus_to_subsys()
665 priv->kobj.kset = sp->drivers_kset; in bus_add_driver()
864 bus_kobj->kset = bus_kset; in bus_register()
991 struct kset *bus_get_kset(const struct bus_type *bus) in bus_get_kset()
994 struct kset *kset; in bus_get_kset() local
999 kset = &sp->subsys; in bus_get_kset()
1002 return kset; in bus_get_kset()
/linux-6.3-rc2/drivers/firmware/
A Dqemu_fw_cfg.c492 static int fw_cfg_build_symlink(struct kset *dir, in fw_cfg_build_symlink()
496 struct kset *subdir; in fw_cfg_build_symlink()
533 subdir = kzalloc(sizeof(struct kset), GFP_KERNEL); in fw_cfg_build_symlink()
538 subdir->kobj.kset = dir; in fw_cfg_build_symlink()
562 static void fw_cfg_kset_unregister_recursive(struct kset *kset) in fw_cfg_kset_unregister_recursive() argument
566 list_for_each_entry_safe(k, next, &kset->list, entry) in fw_cfg_kset_unregister_recursive()
568 if (k->ktype == kset->kobj.ktype) in fw_cfg_kset_unregister_recursive()
572 kset_unregister(kset); in fw_cfg_kset_unregister_recursive()
578 static struct kset *fw_cfg_fname_kset;
/linux-6.3-rc2/drivers/dma-buf/
A Ddma-buf-sysfs-stats.c144 static struct kset *dma_buf_stats_kset;
145 static struct kset *dma_buf_per_buffer_stats_kset;
185 sysfs_entry->kobj.kset = dma_buf_per_buffer_stats_kset; in dma_buf_stats_setup()
/linux-6.3-rc2/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()
466 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_client_alloc()
486 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_switch_alloc()
506 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_alloc()
/linux-6.3-rc2/drivers/platform/x86/
A Dthink-lmi.h92 struct kset *attribute_kset;
93 struct kset *authentication_kset;
/linux-6.3-rc2/fs/ocfs2/cluster/
A Dmasklog.c152 static struct kset mlog_kset = {
156 int mlog_sys_init(struct kset *o2cb_kset) in mlog_sys_init()
167 mlog_kset.kobj.kset = o2cb_kset; in mlog_sys_init()
/linux-6.3-rc2/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-6.3-rc2/fs/erofs/
A Dsysfs.c192 static struct kset erofs_root = {
202 .kset = &erofs_root,
225 sbi->s_kobj.kset = &erofs_root; in erofs_register_sysfs()
/linux-6.3-rc2/fs/ubifs/
A Dsysfs.c87 static struct kset ubifs_kset = {
110 c->kobj.kset = &ubifs_kset; in ubifs_sysfs_register()
/linux-6.3-rc2/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-6.3-rc2/samples/kobject/
A DMakefile2 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
/linux-6.3-rc2/drivers/staging/greybus/
A Daudio_manager_private.h17 struct kset *manager_kset,
/linux-6.3-rc2/drivers/pci/
A Dslot.c15 struct kset *pci_slots_kset;
267 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
369 struct kset *pci_bus_kset; in pci_slot_init()
/linux-6.3-rc2/drivers/net/phy/
A Dphylink.c2131 struct ethtool_link_ksettings *kset) in phylink_get_ksettings() argument
2136 kset->base.speed = state->speed; in phylink_get_ksettings()
2137 kset->base.duplex = state->duplex; in phylink_get_ksettings()
2153 struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_get() argument
2160 phy_ethtool_ksettings_get(pl->phydev, kset); in phylink_ethtool_ksettings_get()
2162 kset->base.port = pl->link_port; in phylink_ethtool_ksettings_get()
2173 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2189 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2203 const struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_set() argument
2240 switch (kset->base.autoneg) { in phylink_ethtool_ksettings_set()
[all …]
/linux-6.3-rc2/arch/x86/platform/efi/
A Druntime-map.c102 static struct kset *map_kset;
127 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
/linux-6.3-rc2/scripts/gdb/linux/
A Ddevice.py30 def kset_for_each_object(kset): argument
31 return list_for_each_entry(kset['list'],

Completed in 44 milliseconds

1234