Home
last modified time | relevance | path

Searched refs:kobject (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dkobject.rst26 - 一个kobject是一个kobject结构体类型的对象。Kobjects有一个名字和一个
36 - ktype是嵌入一个kobject的对象的类型。每个嵌入kobject的结构体都需要一个
120 这将正确设置kobject的父级和kobject的名称。如果该kobject要与一个特定的kset相关
125 由于kobject的名字是在它被添加到内核时设置的,所以kobject的名字不应该被直接操作。
152 当一个kobject被注册到kobject核心后,你需要向全世界宣布它已经被创建了。这可以通
199 这个函数将创建一个kobject,并将其放在sysfs中指定的父kobject下面的位置。要创
243 有一点很重要:每个kobject都必须有一个release()方法,而且这个kobject
292 出来。每个kset都包含一个kobject,它可以被设置为其他kobject的父对象;
348 如果属于一个kset的kobject没有父kobject集,它将被添加到kset的目
350 之前分配了一个明确的父kobject,那么该kobject将被注册到kset中,
[all …]
/openbmc/linux/include/linux/
H A Dkobject.h64 struct kobject { struct
67 struct kobject *parent; argument
94 struct kobject *parent,
98 struct kobject *parent,
103 struct kobject * __must_check kobject_create_and_add(const char *name, struct kobject *parent);
106 int __must_check kobject_move(struct kobject *, struct kobject *);
108 struct kobject *kobject_get(struct kobject *kobj);
109 struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj);
171 struct kobject kobj;
206 extern struct kobject *mm_kobj;
[all …]
H A Dsysfs.h25 struct kobject;
293 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
296 struct kobject *target,
300 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
304 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
348 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
461 struct kobject *target, in sysfs_create_link_nowarn()
471 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
478 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
581 struct kobject *targ, in sysfs_link_change_owner()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_sysfs.c41 struct kobject *kobject, in xfs_sysfs_object_show() argument
52 struct kobject *kobject, in xfs_sysfs_object_store() argument
83 struct kobject *kobject, in bug_on_assert_store() argument
106 struct kobject *kobject, in bug_on_assert_show() argument
115 struct kobject *kobject, in log_recovery_delay_store() argument
136 struct kobject *kobject, in log_recovery_delay_show() argument
145 struct kobject *kobject, in mount_delay_store() argument
166 struct kobject *kobject, in mount_delay_show() argument
175 struct kobject *kobject, in always_cow_store() argument
189 struct kobject *kobject, in always_cow_show() argument
[all …]
H A Dxfs_sysfs.h16 to_kobj(struct kobject *kobject) in to_kobj() argument
18 return container_of(kobject, struct xfs_kobj, kobject); in to_kobj()
22 xfs_sysfs_release(struct kobject *kobject) in xfs_sysfs_release() argument
24 struct xfs_kobj *kobj = to_kobj(kobject); in xfs_sysfs_release()
35 struct kobject *parent; in xfs_sysfs_init()
38 parent = parent_kobj ? &parent_kobj->kobject : NULL; in xfs_sysfs_init()
40 err = kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
42 kobject_put(&kobj->kobject); in xfs_sysfs_init()
51 kobject_del(&kobj->kobject); in xfs_sysfs_del()
52 kobject_put(&kobj->kobject); in xfs_sysfs_del()
/openbmc/linux/net/sunrpc/
H A Dsysfs.c47 struct kobject *parent) in rpc_sysfs_object_alloc()
49 struct kobject *kobj; in rpc_sysfs_object_alloc()
66 struct rpc_sysfs_xprt, kobject); in rpc_sysfs_xprt_kobj_get_xprt()
75 struct rpc_sysfs_xprt, kobject); in rpc_sysfs_xprt_kobj_get_xprt_switch()
398 kobject)->xprt->xprt_net; in rpc_sysfs_xprt_namespace()
471 kobject_put(&p->kobject); in rpc_sysfs_client_alloc()
493 kobject_put(&p->kobject); in rpc_sysfs_xprt_switch_alloc()
507 p->kobject.kset = rpc_sunrpc_kset; in rpc_sysfs_xprt_alloc()
512 kobject_put(&p->kobject); in rpc_sysfs_xprt_alloc()
623 kobject_del(&rpc_xprt->kobject); in rpc_sysfs_xprt_destroy()
[all …]
/openbmc/linux/Documentation/core-api/
H A Dkobject.rst19 - A kobject is an object of type struct kobject. Kobjects have a name
123 The ktype is required for a kobject to be created properly, as every kobject
127 int kobject_add(struct kobject *kobj, struct kobject *parent,
130 This sets up the parent of the kobject and the name for the kobject
133 associated with a kobject, then the parent for the kobject can be set to
169 After a kobject has been registered with the kobject core, you need to
194 struct kobject *kobject_get(struct kobject *kobj);
241 See the example module, ``samples/kobject/kobject-example.c`` for an
398 If the kobject belonging to a kset has no parent kobject set, it will be
401 before the kobject is added, the kobject is registered with the kset, but
[all …]
/openbmc/linux/lib/
H A Dkobject.c213 struct kobject *parent; in kobject_add_internal()
410 int kobject_add(struct kobject *kobj, struct kobject *parent, in kobject_add()
538 int kobject_move(struct kobject *kobj, struct kobject *new_parent) in kobject_move()
621 struct kobject *parent; in kobject_del()
636 struct kobject *kobject_get(struct kobject *kobj) in kobject_get()
649 struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) in kobject_get_unless_zero()
711 struct kobject *kobj = container_of(kref, struct kobject, kref); in kobject_release()
766 struct kobject *kobj; in kobject_create()
789 struct kobject *kobject_create_and_add(const char *name, struct kobject *parent) in kobject_create_and_add()
791 struct kobject *kobj; in kobject_create_and_add()
[all …]
/openbmc/linux/fs/nfs/
H A Dsysfs.c23 static void nfs_kset_release(struct kobject *kobj) in nfs_kset_release()
30 const struct kobject *kobj) in nfs_netns_object_child_ns_type()
78 kobject); in nfs_netns_identifier_show()
101 kobject); in nfs_netns_identifier_store()
124 kobject); in nfs_netns_client_release()
177 p->kobject.kset = nfs_kset; in nfs_netns_client_alloc()
190 kobject_put(&p->kobject); in nfs_netns_client_alloc()
202 kobject_uevent(&clp->kobject, KOBJ_ADD); in nfs_netns_sysfs_setup()
212 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy()
213 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy()
[all …]
/openbmc/linux/kernel/
H A Dksysfs.c39 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
47 static ssize_t cpu_byteorder_show(struct kobject *kobj, in cpu_byteorder_show()
55 static ssize_t address_bits_show(struct kobject *kobj, in address_bits_show()
64 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
85 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
90 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
116 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
159 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
183 static ssize_t fscaps_show(struct kobject *kobj, in fscaps_show()
209 static ssize_t rcu_normal_show(struct kobject *kobj, in rcu_normal_show()
[all …]
/openbmc/linux/fs/sysfs/
H A Dsymlink.c21 struct kobject *target_kobj, in sysfs_do_create_link_sd()
61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd()
67 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link()
89 int sysfs_create_link(struct kobject *kobj, struct kobject *target, in sysfs_create_link()
105 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, in sysfs_create_link_nowarn()
121 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link()
143 void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
166 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns()
H A Dgroup.c175 int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
215 int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
233 int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
258 int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
273 void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
308 void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
329 int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
363 void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
431 struct kobject *target_kobj, in compat_only_sysfs_link_entry_to_kobj()
520 int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner()
[all …]
H A Dfile.c28 struct kobject *kobj = kn->parent->priv; in sysfs_file_ops()
43 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show()
81 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read()
105 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_read()
131 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_write()
144 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_write()
165 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_mmap()
258 struct kobject *kobj = parent->priv; in sysfs_add_file_mode_ns()
472 struct kobject *kobj = kn->parent->priv; in sysfs_unbreak_active_protection()
560 int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
[all …]
H A Ddir.c40 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
79 void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
105 int sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, in sysfs_rename_dir_ns()
117 int sysfs_move_dir_ns(struct kobject *kobj, struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
134 int sysfs_create_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_create_mount_point()
155 void sysfs_remove_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_remove_mount_point()
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.h133 struct kobject *attr_name_kobj;
142 struct kobject *attr_name_kobj;
152 struct kobject *attr_name_kobj;
161 struct kobject *attr_name_kobj;
170 struct kobject *attr_name_kobj;
195 struct kobject *attr_name_kobj;
219 struct kobject *sure_start_attr_kobj;
398 struct kobject *attr_name_kobj);
418 struct kobject *attr_name_kobj);
423 struct kobject *attr_name_kobj);
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dsysfs_engines.c15 struct kobject base;
19 static struct intel_engine_cs *kobj_to_engine(struct kobject *kobj) in kobj_to_engine()
25 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in name_show()
141 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, in max_spin_store()
201 timeslice_store(struct kobject *kobj, struct kobj_attribute *attr, in timeslice_store()
255 stop_store(struct kobject *kobj, struct kobj_attribute *attr, in stop_store()
417 static void kobj_engine_release(struct kobject *kobj) in kobj_engine_release()
427 static struct kobject *
428 kobj_engine(struct kobject *dir, struct intel_engine_cs *engine) in kobj_engine()
503 struct kobject *dir; in intel_engines_add_sysfs()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.h88 struct kobject *kobj;
106 struct kobject *kobj;
126 struct kobject *kobj;
148 struct kobject *kobj_node;
149 struct kobject *kobj_mem;
150 struct kobject *kobj_cache;
151 struct kobject *kobj_iolink;
152 struct kobject *kobj_p2plink;
153 struct kobject *kobj_perf;
171 struct kobject *kobj_topology;
[all …]
/openbmc/linux/mm/damon/
H A Dsysfs-schemes.c17 struct kobject kobj;
117 struct kobject kobj;
132 regions->kobj = (struct kobject){}; in damon_sysfs_scheme_regions_alloc()
185 struct kobject kobj;
284 struct kobject kobj;
489 struct kobject kobj;
608 struct kobject kobj;
783 struct kobject kobj;
894 struct kobject kobj;
1025 struct kobject kobj;
[all …]
H A Dsysfs.c19 struct kobject kobj;
95 struct kobject kobj;
212 struct kobject kobj;
291 struct kobject kobj;
416 struct kobject kobj;
544 struct kobject kobj;
633 struct kobject kobj;
814 struct kobject kobj;
940 struct kobject kobj;
1612 struct kobject kobj;
[all …]
/openbmc/linux/kernel/power/
H A Dmain.c249 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show()
359 static ssize_t _name##_show(struct kobject *kobj, \
572 static ssize_t pm_wakeup_irq_show(struct kobject *kobj, in pm_wakeup_irq_show()
627 struct kobject *power_kobj;
750 static ssize_t wakeup_count_show(struct kobject *kobj, in wakeup_count_show()
792 static ssize_t autosleep_show(struct kobject *kobj, in autosleep_show()
813 static ssize_t autosleep_store(struct kobject *kobj, in autosleep_store()
835 static ssize_t wake_lock_show(struct kobject *kobj, in wake_lock_show()
842 static ssize_t wake_lock_store(struct kobject *kobj, in wake_lock_store()
852 static ssize_t wake_unlock_show(struct kobject *kobj, in wake_unlock_show()
[all …]
/openbmc/linux/fs/btrfs/
H A Dsysfs.c58 struct kobject kobj;
103 static struct kobject *get_btrfs_kobj(struct kobject *kobj);
1335 static struct kobject *get_btrfs_kobj(struct kobject *kobj) in get_btrfs_kobj()
1631 struct kobject *kobj; in btrfs_sysfs_remove_space_info()
1683 struct kobject *devices_kobj; in btrfs_sysfs_remove_device()
1860 struct kobject *devices_kobj; in btrfs_sysfs_add_device()
1861 struct kobject *devinfo_kobj; in btrfs_sysfs_add_device()
2013 struct kobject *fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_add_mounted()
2159 static void qgroups_release(struct kobject *kobj) in qgroups_release()
2227 static void qgroup_release(struct kobject *kobj) in qgroup_release()
[all …]
/openbmc/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Ddell-wmi-sysman.h27 struct kobject *attr_name_kobj;
38 struct kobject *attr_name_kobj;
50 struct kobject *attr_name_kobj;
61 struct kobject *attr_name_kobj;
102 static int get_##type##_instance_id(struct kobject *kobj) \
113 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
123 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
133 static ssize_t curr_val##_store(struct kobject *kobj, \
163 struct kobject *attr_name_kobj, u32 enum_property_count);
168 struct kobject *attr_name_kobj);
[all …]
/openbmc/linux/Documentation/translations/zh_TW/filesystems/
H A Dsysfs.txt30 sysfs - 用於導出內核對象(kobject)的文件系統
45 sysfs 始終與 kobject 的底層結構緊密相關。請閱讀
46 Documentation/core-api/kobject.rst 文檔以獲得更多關於 kobject 接口的
62 任何 kobject 在系統中註冊,就會有一個目錄在 sysfs 中被創建。這個
63 目錄是作爲該 kobject 的父對象所在目錄的子目錄創建的,以準確地傳遞
68 目錄的 kobject 的指針。以前,這個 kobject 指針被 sysfs 直接用於
69 kobject 文件打開和關閉的引用計數。而現在的 sysfs 實現中,kobject
76 kobject 的屬性可在文件系統中以普通文件的形式導出。Sysfs 爲屬性定義
145 ssize_t (*show)(struct kobject *, struct attribute *, char *);
150 描述符,並在此保存 sysfs_ops 的指針。更多的信息參見 kobject
[all …]
/openbmc/linux/Documentation/translations/zh_CN/filesystems/
H A Dsysfs.txt27 sysfs - 用于导出内核对象(kobject)的文件系统
42 sysfs 始终与 kobject 的底层结构紧密相关。请阅读
43 Documentation/core-api/kobject.rst 文档以获得更多关于 kobject 接口的
59 任何 kobject 在系统中注册,就会有一个目录在 sysfs 中被创建。这个
60 目录是作为该 kobject 的父对象所在目录的子目录创建的,以准确地传递
65 目录的 kobject 的指针。以前,这个 kobject 指针被 sysfs 直接用于
66 kobject 文件打开和关闭的引用计数。而现在的 sysfs 实现中,kobject
73 kobject 的属性可在文件系统中以普通文件的形式导出。Sysfs 为属性定义
142 ssize_t (*show)(struct kobject *, struct attribute *, char *);
147 描述符,并在此保存 sysfs_ops 的指针。更多的信息参见 kobject
[all …]
/openbmc/linux/arch/s390/kernel/
H A Duv.c485 static ssize_t uv_query_facilities(struct kobject *kobj, in uv_query_facilities()
498 static ssize_t uv_query_supp_se_hdr_ver(struct kobject *kobj, in uv_query_supp_se_hdr_ver()
507 static ssize_t uv_query_supp_se_hdr_pcf(struct kobject *kobj, in uv_query_supp_se_hdr_pcf()
516 static ssize_t uv_query_dump_cpu_len(struct kobject *kobj, in uv_query_dump_cpu_len()
552 static ssize_t uv_query_max_guest_cpus(struct kobject *kobj, in uv_query_max_guest_cpus()
561 static ssize_t uv_query_max_guest_vms(struct kobject *kobj, in uv_query_max_guest_vms()
570 static ssize_t uv_query_max_guest_addr(struct kobject *kobj, in uv_query_max_guest_addr()
624 static ssize_t uv_query_max_secrets(struct kobject *kobj, in uv_query_max_secrets()
657 static ssize_t uv_is_prot_virt_guest(struct kobject *kobj, in uv_is_prot_virt_guest()
668 static ssize_t uv_is_prot_virt_host(struct kobject *kobj, in uv_is_prot_virt_host()
[all …]

12345678910>>...26