Home
last modified time | relevance | path

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

1234

/linux/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/lib/
A Dkobject.c238 kobj->kset ? kobject_name(&kobj->kset->kobj) : "<NULL>"); in kobject_add_internal()
925 struct kset *kset = container_of(kobj, struct kset, kobj); in kset_release() local
928 kfree(kset); in kset_release()
962 struct kset *kset; in kset_create() local
965 kset = kzalloc(sizeof(*kset), GFP_KERNEL); in kset_create()
966 if (!kset) in kset_create()
982 kset->kobj.kset = NULL; in kset_create()
984 return kset; in kset_create()
1005 struct kset *kset; in kset_create_and_add() local
1009 if (!kset) in kset_create_and_add()
[all …]
A Dkobject_uevent.c394 if (!ops && kobj->kset) { in kobject_uevent_net_broadcast()
395 struct kobject *ksobj = &kobj->kset->kobj; in kobject_uevent_net_broadcast()
481 struct kset *kset; in kobject_uevent_env() local
498 while (!top_kobj->kset && top_kobj->parent) in kobject_uevent_env()
501 if (!top_kobj->kset) { in kobject_uevent_env()
508 kset = top_kobj->kset; in kobject_uevent_env()
509 uevent_ops = kset->uevent_ops; in kobject_uevent_env()
531 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
/linux/include/linux/
A Dkobject.h68 struct kset *kset; member
168 struct kset { struct
175 void kset_init(struct kset *kset); argument
176 int __must_check kset_register(struct kset *kset);
177 void kset_unregister(struct kset *kset);
178 struct kset * __must_check kset_create_and_add(const char *name, const struct kset_uevent_ops *u,
181 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
183 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
186 static inline struct kset *kset_get(struct kset *k) in kset_get()
191 static inline void kset_put(struct kset *k) in kset_put()
[all …]
A Discsi_boot_sysfs.h105 struct kset *kset; member
/linux/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/fs/nfs/
A Dsysfs.c21 static struct kset *nfs_kset;
25 struct kset *kset = container_of(kobj, struct kset, kobj); in nfs_kset_release() local
26 kfree(kset); in nfs_kset_release()
57 nfs_kset->kobj.kset = NULL; in nfs_sysfs_init()
177 p->kobject.kset = nfs_kset; in nfs_netns_client_alloc()
178 p->nfs_net_kobj.kset = nfs_kset; in nfs_netns_client_alloc()
/linux/drivers/base/
A Dbase.h43 struct kset subsys;
44 struct kset *devices_kset;
48 struct kset *drivers_kset;
56 struct kset glue_dirs;
191 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()
667 priv->kobj.kset = sp->drivers_kset; in bus_add_driver()
873 bus_kobj->kset = bus_kset; in bus_register()
1002 struct kset *bus_get_kset(const struct bus_type *bus) in bus_get_kset()
1005 struct kset *kset; in bus_get_kset() local
1010 kset = &sp->subsys; in bus_get_kset()
1013 return kset; in bus_get_kset()
A Dclass.c24 static struct kset *class_kset;
56 struct kset *kset = container_of(kobj, struct kset, kobj); in class_to_subsys() local
58 sp = container_of_const(kset, struct subsys_private, subsys); in class_to_subsys()
210 cp->subsys.kobj.kset = class_kset; in class_register()
/linux/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/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/drivers/platform/x86/hp/hp-bioscfg/
A Dbioscfg.c538 static void destroy_attribute_objs(struct kset *kset) in destroy_attribute_objs() argument
542 list_for_each_entry_safe(pos, next, &kset->list, entry) in destroy_attribute_objs()
603 attr_name_kobj->kset = bioscfg_drv.authentication_dir_kset; in hp_add_other_attributes()
608 attr_name_kobj->kset = bioscfg_drv.main_dir_kset; in hp_add_other_attributes()
660 struct kset *temp_kset; in hp_init_bios_package_attribute()
718 attr_name_kobj->kset = temp_kset; in hp_init_bios_package_attribute()
771 struct kset *temp_kset; in hp_init_bios_buffer_attribute()
811 attr_name_kobj->kset = temp_kset; in hp_init_bios_buffer_attribute()
/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()
467 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_client_alloc()
487 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_switch_alloc()
507 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_alloc()
/linux/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/drivers/platform/x86/
A Dthink-lmi.h108 struct kset *attribute_kset;
109 struct kset *authentication_kset;
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
A Dsysman.c349 static void destroy_attribute_objs(struct kset *kset) in destroy_attribute_objs() argument
353 list_for_each_entry_safe(pos, next, &kset->list, entry) { in destroy_attribute_objs()
397 struct kset *tmp_set; in init_bios_attributes()
470 attr_name_kobj->kset = tmp_set; in init_bios_attributes()
/linux/fs/erofs/
A Dsysfs.c192 static struct kset erofs_root = {
202 .kset = &erofs_root,
210 sbi->s_kobj.kset = &erofs_root; in erofs_register_sysfs()
/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/fs/ubifs/
A Dsysfs.c87 static struct kset ubifs_kset = {
110 c->kobj.kset = &ubifs_kset; in ubifs_sysfs_register()
/linux/samples/kobject/
A DMakefile2 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
/linux/drivers/staging/greybus/
A Daudio_manager_private.h16 struct kset *manager_kset, int id,
/linux/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/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/drivers/net/phy/
A Dphylink.c2449 struct ethtool_link_ksettings *kset) in phylink_get_ksettings() argument
2454 kset->base.speed = state->speed; in phylink_get_ksettings()
2455 kset->base.duplex = state->duplex; in phylink_get_ksettings()
2472 struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_get() argument
2479 phy_ethtool_ksettings_get(pl->phydev, kset); in phylink_ethtool_ksettings_get()
2481 kset->base.port = pl->link_port; in phylink_ethtool_ksettings_get()
2492 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2508 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2564 switch (kset->base.autoneg) { in phylink_ethtool_ksettings_set()
2569 s = phy_lookup_setting(kset->base.speed, kset->base.duplex, in phylink_ethtool_ksettings_set()
[all …]

Completed in 68 milliseconds

1234