Home
last modified time | relevance | path

Searched defs:kobj (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/lib/
Dkobject.c28 const void *kobject_namespace(struct kobject *kobj) in kobject_namespace()
48 void kobject_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) in kobject_get_ownership()
66 static int populate_dir(struct kobject *kobj) in populate_dir()
83 static int create_dir(struct kobject *kobj) in create_dir()
129 static int get_kobj_path_length(struct kobject *kobj) in get_kobj_path_length()
147 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path()
171 char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) in kobject_get_path()
189 static void kobj_kset_join(struct kobject *kobj) in kobj_kset_join()
201 static void kobj_kset_leave(struct kobject *kobj) in kobj_kset_leave()
212 static void kobject_init_internal(struct kobject *kobj) in kobject_init_internal()
[all …]
/kernel/linux/linux-5.10/kernel/
Dksysfs.c31 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
40 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
45 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store()
61 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
66 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
92 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
99 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show()
106 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show()
111 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store()
130 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dsysfs.h339 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
344 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
348 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns()
354 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns()
372 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns()
379 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files()
385 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file()
392 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
402 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns()
408 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Ddevice_node.c188 static ssize_t sbi_cmd_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_cmd_show()
221 static ssize_t sbi_cmd_store(struct kobject *kobj, struct sbi_attribute *attr, in sbi_cmd_store()
251 static ssize_t sbi_status_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_status_show()
284 static ssize_t sbi_status_store(struct kobject *kobj, in sbi_status_store()
294 static ssize_t sbi_stat_show(struct kobject *kobj, struct sbi_attribute *attr, in sbi_stat_show()
326 static ssize_t sbi_stat_store(struct kobject *kobj, struct sbi_attribute *attr, in sbi_stat_store()
353 static ssize_t sbi_dcache_precision_show(struct kobject *kobj, in sbi_dcache_precision_show()
361 static ssize_t sbi_dcache_precision_store(struct kobject *kobj, in sbi_dcache_precision_store()
384 static ssize_t sbi_dcache_threshold_show(struct kobject *kobj, in sbi_dcache_threshold_show()
391 static ssize_t sbi_dcache_threshold_store(struct kobject *kobj, in sbi_dcache_threshold_store()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c19 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()
34 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in class_show()
43 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in inst_show()
52 mmio_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mmio_show()
127 caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in caps_show()
138 all_caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in all_caps_show()
147 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, in max_spin_store()
184 max_spin_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in max_spin_show()
195 max_spin_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in max_spin_default()
[all …]
/kernel/linux/linux-5.10/fs/sysfs/
Dfile.c28 struct kobject *kobj = kn->parent->priv; in sysfs_file_ops() local
43 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show() local
84 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read() local
108 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_read() local
134 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_write() local
147 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_write() local
168 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_mmap() local
173 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) in sysfs_notify()
256 struct kobject *kobj = parent->priv; in sysfs_add_file_mode_ns() local
322 int sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, in sysfs_create_file_ns()
[all …]
Dgroup.c34 static int create_files(struct kernfs_node *parent, struct kobject *kobj, in create_files()
108 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group()
172 int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
179 static int internal_create_groups(struct kobject *kobj, int update, in internal_create_groups()
212 int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
230 int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
255 int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
270 void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
305 void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
326 int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
[all …]
Dsymlink.c67 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()
/kernel/linux/linux-5.10/kernel/power/
Dmain.c100 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show()
106 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store()
124 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_show()
166 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_store()
202 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show()
208 static ssize_t sync_on_suspend_store(struct kobject *kobj, in sync_on_suspend_store()
239 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show()
260 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store()
329 static ssize_t last_failed_dev_show(struct kobject *kobj, in last_failed_dev_show()
343 static ssize_t last_failed_errno_show(struct kobject *kobj, in last_failed_errno_show()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dsysfs.c34 struct kobject kobj; member
147 static ssize_t btrfs_feature_attr_show(struct kobject *kobj, in btrfs_feature_attr_show()
163 static ssize_t btrfs_feature_attr_store(struct kobject *kobj, in btrfs_feature_attr_store()
231 static umode_t btrfs_feature_visible(struct kobject *kobj, in btrfs_feature_visible()
297 static ssize_t rmdir_subvol_show(struct kobject *kobj, in rmdir_subvol_show()
304 static ssize_t supported_checksums_show(struct kobject *kobj, in supported_checksums_show()
325 static ssize_t send_stream_version_show(struct kobject *kobj, in send_stream_version_show()
357 static ssize_t btrfs_discardable_bytes_show(struct kobject *kobj, in btrfs_discardable_bytes_show()
368 static ssize_t btrfs_discardable_extents_show(struct kobject *kobj, in btrfs_discardable_extents_show()
379 static ssize_t btrfs_discard_bitmap_bytes_show(struct kobject *kobj, in btrfs_discard_bitmap_bytes_show()
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dsysfs.c23 static void nfs_netns_object_release(struct kobject *kobj) in nfs_netns_object_release()
29 struct kobject *kobj) in nfs_netns_object_child_ns_type()
43 struct kobject *kobj; in nfs_netns_object_alloc() local
76 static ssize_t nfs_netns_identifier_show(struct kobject *kobj, in nfs_netns_identifier_show()
98 static ssize_t nfs_netns_identifier_store(struct kobject *kobj, in nfs_netns_identifier_store()
123 static void nfs_netns_client_release(struct kobject *kobj) in nfs_netns_client_release()
133 static const void *nfs_netns_client_namespace(struct kobject *kobj) in nfs_netns_client_namespace()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dipl.c289 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show()
297 static ssize_t ipl_secure_show(struct kobject *kobj, in ipl_secure_show()
306 static ssize_t ipl_has_secure_show(struct kobject *kobj, in ipl_has_secure_show()
315 static ssize_t ipl_vm_parm_show(struct kobject *kobj, in ipl_vm_parm_show()
328 static ssize_t sys_ipl_device_show(struct kobject *kobj, in sys_ipl_device_show()
349 static ssize_t ipl_parameter_read(struct file *filp, struct kobject *kobj, in ipl_parameter_read()
360 static ssize_t ipl_scp_data_read(struct file *filp, struct kobject *kobj, in ipl_scp_data_read()
370 static ssize_t ipl_nvme_scp_data_read(struct file *filp, struct kobject *kobj, in ipl_nvme_scp_data_read()
419 static ssize_t ipl_ccw_loadparm_show(struct kobject *kobj, in ipl_ccw_loadparm_show()
615 static ssize_t reipl_nss_vmparm_show(struct kobject *kobj, in reipl_nss_vmparm_show()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
Drtrs-clt-sysfs.c19 static void rtrs_clt_sess_release(struct kobject *kobj) in rtrs_clt_sess_release()
33 static void rtrs_clt_sess_stats_release(struct kobject *kobj) in rtrs_clt_sess_stats_release()
180 static ssize_t rtrs_clt_state_show(struct kobject *kobj, in rtrs_clt_state_show()
195 static ssize_t rtrs_clt_reconnect_show(struct kobject *kobj, in rtrs_clt_reconnect_show()
203 static ssize_t rtrs_clt_reconnect_store(struct kobject *kobj, in rtrs_clt_reconnect_store()
227 static ssize_t rtrs_clt_disconnect_show(struct kobject *kobj, in rtrs_clt_disconnect_show()
235 static ssize_t rtrs_clt_disconnect_store(struct kobject *kobj, in rtrs_clt_disconnect_store()
259 static ssize_t rtrs_clt_remove_path_show(struct kobject *kobj, in rtrs_clt_remove_path_show()
267 static ssize_t rtrs_clt_remove_path_store(struct kobject *kobj, in rtrs_clt_remove_path_store()
319 static ssize_t rtrs_clt_hca_port_show(struct kobject *kobj, in rtrs_clt_hca_port_show()
[all …]
Drtrs-srv-sysfs.c16 static void rtrs_srv_release(struct kobject *kobj) in rtrs_srv_release()
29 static ssize_t rtrs_srv_disconnect_show(struct kobject *kobj, in rtrs_srv_disconnect_show()
37 static ssize_t rtrs_srv_disconnect_store(struct kobject *kobj, in rtrs_srv_disconnect_store()
67 static ssize_t rtrs_srv_hca_port_show(struct kobject *kobj, in rtrs_srv_hca_port_show()
84 static ssize_t rtrs_srv_hca_name_show(struct kobject *kobj, in rtrs_srv_hca_name_show()
99 static ssize_t rtrs_srv_src_addr_show(struct kobject *kobj, in rtrs_srv_src_addr_show()
115 static ssize_t rtrs_srv_dst_addr_show(struct kobject *kobj, in rtrs_srv_dst_addr_show()
222 static void rtrs_srv_sess_stats_release(struct kobject *kobj) in rtrs_srv_sess_stats_release()
/kernel/linux/linux-5.10/drivers/parisc/
Dpdc_stable.c93 struct kobject kobj; member
435 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show()
455 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, in pdcspath_attr_store()
515 static ssize_t pdcs_size_read(struct kobject *kobj, in pdcs_size_read()
535 static ssize_t pdcs_auto_read(struct kobject *kobj, in pdcs_auto_read()
560 static ssize_t pdcs_autoboot_read(struct kobject *kobj, in pdcs_autoboot_read()
570 static ssize_t pdcs_autosearch_read(struct kobject *kobj, in pdcs_autosearch_read()
582 static ssize_t pdcs_timer_read(struct kobject *kobj, in pdcs_timer_read()
607 static ssize_t pdcs_osid_read(struct kobject *kobj, in pdcs_osid_read()
627 static ssize_t pdcs_osdep1_read(struct kobject *kobj, in pdcs_osdep1_read()
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Daudio_manager_sysfs.c14 static ssize_t manager_sysfs_add_store(struct kobject *kobj, in manager_sysfs_add_store()
39 static ssize_t manager_sysfs_remove_store(struct kobject *kobj, in manager_sysfs_remove_store()
60 static ssize_t manager_sysfs_dump_store(struct kobject *kobj, in manager_sysfs_dump_store()
84 static void manager_sysfs_init_attribute(struct kobject *kobj, in manager_sysfs_init_attribute()
96 void gb_audio_manager_sysfs_init(struct kobject *kobj) in gb_audio_manager_sysfs_init()
/kernel/linux/linux-5.10/drivers/cpuidle/
Dsysfs.c149 struct kobject kobj; member
152 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device()
160 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show()
175 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store()
195 static void cpuidle_sysfs_release(struct kobject *kobj) in cpuidle_sysfs_release()
343 struct kobject kobj; member
377 static void cpuidle_add_s2idle_attr_group(struct cpuidle_state_kobj *kobj) in cpuidle_add_s2idle_attr_group()
389 static void cpuidle_remove_s2idle_attr_group(struct cpuidle_state_kobj *kobj) in cpuidle_remove_s2idle_attr_group()
395 static inline void cpuidle_add_s2idle_attr_group(struct cpuidle_state_kobj *kobj) { } in cpuidle_add_s2idle_attr_group()
396 static inline void cpuidle_remove_s2idle_attr_group(struct cpuidle_state_kobj *kobj) { } in cpuidle_remove_s2idle_attr_group()
[all …]
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-clt-sysfs.c206 static ssize_t state_show(struct kobject *kobj, in state_show()
231 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show()
244 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show()
258 static ssize_t rnbd_clt_unmap_dev_show(struct kobject *kobj, in rnbd_clt_unmap_dev_show()
265 static ssize_t rnbd_clt_unmap_dev_store(struct kobject *kobj, in rnbd_clt_unmap_dev_store()
328 static ssize_t rnbd_clt_resize_dev_show(struct kobject *kobj, in rnbd_clt_resize_dev_show()
337 static ssize_t rnbd_clt_resize_dev_store(struct kobject *kobj, in rnbd_clt_resize_dev_store()
362 static ssize_t rnbd_clt_remap_dev_show(struct kobject *kobj, in rnbd_clt_remap_dev_show()
369 static ssize_t rnbd_clt_remap_dev_store(struct kobject *kobj, in rnbd_clt_remap_dev_store()
404 static ssize_t session_show(struct kobject *kobj, struct kobj_attribute *attr, in session_show()
[all …]
Drnbd-srv-sysfs.c27 static void rnbd_srv_dev_release(struct kobject *kobj) in rnbd_srv_dev_release()
81 static ssize_t read_only_show(struct kobject *kobj, struct kobj_attribute *attr, in read_only_show()
95 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show()
110 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show()
143 static void rnbd_srv_sess_dev_release(struct kobject *kobj) in rnbd_srv_sess_dev_release()
/kernel/linux/linux-5.10/drivers/w1/slaves/
Dw1_ds2408.c67 static ssize_t state_read(struct file *filp, struct kobject *kobj, in state_read()
79 static ssize_t output_read(struct file *filp, struct kobject *kobj, in output_read()
92 static ssize_t activity_read(struct file *filp, struct kobject *kobj, in activity_read()
105 static ssize_t cond_search_mask_read(struct file *filp, struct kobject *kobj, in cond_search_mask_read()
119 struct kobject *kobj, in cond_search_polarity_read()
129 static ssize_t status_control_read(struct file *filp, struct kobject *kobj, in status_control_read()
162 static ssize_t output_write(struct file *filp, struct kobject *kobj, in output_write()
212 static ssize_t activity_write(struct file *filp, struct kobject *kobj, in activity_write()
242 static ssize_t status_control_write(struct file *filp, struct kobject *kobj, in status_control_write()
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
Dkobjects.c29 static ssize_t chars_chartab_show(struct kobject *kobj, in chars_chartab_show()
109 static ssize_t chars_chartab_store(struct kobject *kobj, in chars_chartab_store()
229 static ssize_t keymap_show(struct kobject *kobj, struct kobj_attribute *attr, in keymap_show()
265 static ssize_t keymap_store(struct kobject *kobj, struct kobj_attribute *attr, in keymap_store()
332 static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr, in silent_store()
371 static ssize_t synth_show(struct kobject *kobj, struct kobj_attribute *attr, in synth_show()
386 static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr, in synth_store()
412 static ssize_t synth_direct_store(struct kobject *kobj, in synth_direct_store()
443 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, in version_show()
459 static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr, in punc_show()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Dksysfs.c22 static ssize_t version_show(struct kobject *kobj, in version_show()
30 static ssize_t boot_params_data_read(struct file *fp, struct kobject *kobj, in boot_params_data_read()
62 static int kobj_to_setup_data_nr(struct kobject *kobj, int *nr) in kobj_to_setup_data_nr()
135 static ssize_t type_show(struct kobject *kobj, in type_show()
174 struct kobject *kobj, in setup_data_data_read()
276 struct kobject *kobj; in create_setup_data_node() local
300 static void __init cleanup_setup_data_node(struct kobject *kobj) in cleanup_setup_data_node()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_sysfs.h24 struct xfs_kobj *kobj = to_kobj(kobject); in xfs_sysfs_release() local
30 struct xfs_kobj *kobj, in xfs_sysfs_init()
44 struct xfs_kobj *kobj) in xfs_sysfs_del()
/kernel/linux/linux-5.10/samples/kobject/
Dkobject-example.c28 static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr, in foo_show()
34 static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr, in foo_store()
54 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, in b_show()
66 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, in b_store()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsecvar-sysfs.c21 static ssize_t format_show(struct kobject *kobj, struct kobj_attribute *attr, in format_show()
47 static ssize_t size_show(struct kobject *kobj, struct kobj_attribute *attr, in size_show()
63 static ssize_t data_read(struct file *filep, struct kobject *kobj, in data_read()
95 static ssize_t update_write(struct file *filep, struct kobject *kobj, in update_write()
171 struct kobject *kobj; in secvar_sysfs_load() local

12345678910>>...19