Home
last modified time | relevance | path

Searched refs:kobject (Results 1 – 200 of 448) sorted by relevance

123

/linux-4.4.14/include/linux/
Dsysfs.h24 struct kobject;
85 umode_t (*is_visible)(struct kobject *,
87 umode_t (*is_bin_visible)(struct kobject *,
159 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
161 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
163 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
210 ssize_t (*show)(struct kobject *, struct attribute *, char *);
211 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
216 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
217 void sysfs_remove_dir(struct kobject *kobj);
[all …]
Dkobject.h63 struct kobject { struct
66 struct kobject *parent; argument
82 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
84 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
87 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
92 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
94 int kobject_add(struct kobject *kobj, struct kobject *parent,
97 int kobject_init_and_add(struct kobject *kobj,
98 struct kobj_type *ktype, struct kobject *parent,
101 extern void kobject_del(struct kobject *kobj);
[all …]
Dkobject_ns.h21 struct kobject;
51 const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent);
52 const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj);
Dlivepatch.h61 struct kobject kobj;
102 struct kobject kobj;
122 struct kobject kobj;
Dkobj_map.h10 typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
16 struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *);
Duio_driver.h74 struct kobject *map_dir;
75 struct kobject *portio_dir;
Dcpufreq.h93 struct kobject kobj;
151 extern struct kobject *cpufreq_global_kobject;
163 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy);
208 ssize_t (*show)(struct kobject *kobj,
210 ssize_t (*store)(struct kobject *a, struct attribute *b,
Dgenhd.h26 extern struct kobject *block_depr;
115 struct kobject *holder_dir;
154 struct kobject kobj;
207 struct kobject *slave_dir;
213 struct kobject integrity_kobj;
633 extern struct kobject *get_disk(struct gendisk *disk);
637 struct kobject *(*probe)(dev_t, int *, void *),
Defi.h920 extern struct kobject *efi_kobj;
1106 struct kobject *kobject; member
1131 struct kobject kobj;
1164 struct kobject *kobject);
1166 struct kobject *efivars_kobject(void);
1218 int efi_runtime_map_init(struct kobject *);
1224 static inline int efi_runtime_map_init(struct kobject *kobj) in efi_runtime_map_init()
Dcdev.h13 struct kobject kobj;
Dslub_def.h85 struct kobject kobj; /* For sysfs */
Dmodule.h42 struct kobject kobj;
44 struct kobject *drivers_dir;
325 struct kobject *holders_dir;
Discsi_boot_sysfs.h69 struct kobject kobj;
Dpadata.h159 struct kobject kobj;
Dpktcdvd.h157 struct kobject kobj;
Ddmi.h97 extern struct kobject *dmi_kobj;
/linux-4.4.14/fs/xfs/
Dxfs_sysfs.c28 ssize_t (*show)(struct kobject *kobject, char *buf);
29 ssize_t (*store)(struct kobject *kobject, const char *buf,
60 struct kobject *kobject, in xfs_sysfs_object_show() argument
66 return xfs_attr->show ? xfs_attr->show(kobject, buf) : 0; in xfs_sysfs_object_show()
71 struct kobject *kobject, in xfs_sysfs_object_store() argument
78 return xfs_attr->store ? xfs_attr->store(kobject, buf, count) : 0; in xfs_sysfs_object_store()
91 struct kobject *kobject, in log_recovery_delay_store() argument
112 struct kobject *kobject, in log_recovery_delay_show() argument
135 to_xstats(struct kobject *kobject) in to_xstats() argument
137 struct xfs_kobj *kobj = to_kobj(kobject); in to_xstats()
[all …]
Dxfs_sysfs.h28 to_kobj(struct kobject *kobject) in to_kobj() argument
30 return container_of(kobject, struct xfs_kobj, kobject); in to_kobj()
34 xfs_sysfs_release(struct kobject *kobject) in xfs_sysfs_release() argument
36 struct xfs_kobj *kobj = to_kobj(kobject); in xfs_sysfs_release()
48 return kobject_init_and_add(&kobj->kobject, ktype, in xfs_sysfs_init()
49 &parent_kobj->kobject, "%s", name); in xfs_sysfs_init()
56 kobject_del(&kobj->kobject); in xfs_sysfs_del()
57 kobject_put(&kobj->kobject); in xfs_sysfs_del()
Dxfs_linux.h170 struct kobject kobject; member
/linux-4.4.14/Documentation/
Dkobject.txt11 Part of the difficulty in understanding the driver model - and the kobject
19 - A kobject is an object of type struct kobject. Kobjects have a name
20 and a reference count. A kobject also has a parent pointer (allowing
28 No structure should EVER have more than one kobject embedded within it.
32 - A ktype is the type of object that embeds a kobject. Every structure
33 that embeds a kobject needs a corresponding ktype. The ktype controls
34 what happens to the kobject when it is created and destroyed.
40 this kobject automatically.
43 of those directories corresponds to a kobject in the same kset.
51 It is rare for kernel code to create a standalone kobject, with one major
[all …]
/linux-4.4.14/lib/
Dkobject.c30 const void *kobject_namespace(struct kobject *kobj) in kobject_namespace()
49 static int populate_dir(struct kobject *kobj) in populate_dir()
66 static int create_dir(struct kobject *kobj) in create_dir()
103 static int get_kobj_path_length(struct kobject *kobj) in get_kobj_path_length()
106 struct kobject *parent = kobj; in get_kobj_path_length()
121 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path()
123 struct kobject *parent; in fill_kobj_path()
146 char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) in kobject_get_path()
164 static void kobj_kset_join(struct kobject *kobj) in kobj_kset_join()
176 static void kobj_kset_leave(struct kobject *kobj) in kobj_kset_leave()
[all …]
Dkobject_uevent.c92 struct kobject *kobj = data, *ksobj; in kobj_bcast_filter()
114 static int kobj_usermode_filter(struct kobject *kobj) in kobj_usermode_filter()
164 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, in kobject_uevent_env()
171 struct kobject *top_kobj; in kobject_uevent_env()
372 int kobject_uevent(struct kobject *kobj, enum kobject_action action) in kobject_uevent()
/linux-4.4.14/fs/sysfs/
Dsymlink.c22 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()
120 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link()
142 void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
165 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns()
Dfile.c30 struct kobject *kobj = kn->parent->priv; in sysfs_file_ops()
45 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show()
86 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read()
110 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_read()
128 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_write()
141 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_write()
162 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_mmap()
167 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) in sysfs_notify()
250 struct kobject *kobj = parent->priv; in sysfs_add_file_mode_ns()
321 int sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, in sysfs_create_file_ns()
[all …]
Dgroup.c35 static int create_files(struct kernfs_node *parent, struct kobject *kobj, in create_files()
107 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group()
153 int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
173 int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
211 int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
226 void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
261 void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
282 int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
311 void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
333 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name, in sysfs_add_link_to_group()
[all …]
Ddir.c41 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
75 void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
101 int sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, in sysfs_rename_dir_ns()
113 int sysfs_move_dir_ns(struct kobject *kobj, struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
130 int sysfs_create_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_create_mount_point()
151 void sysfs_remove_mount_point(struct kobject *parent_kobj, const char *name) in sysfs_remove_mount_point()
Dsysfs.h40 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target,
/linux-4.4.14/kernel/
Dksysfs.c33 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show()
42 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show()
47 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store()
63 static ssize_t profiling_show(struct kobject *kobj, in profiling_show()
68 static ssize_t profiling_store(struct kobject *kobj, in profiling_store()
94 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show()
101 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show()
108 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show()
113 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store()
128 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show()
[all …]
Dparams.c801 struct kobject *kobj; in locate_module_kobject()
925 static ssize_t module_attr_show(struct kobject *kobj, in module_attr_show()
944 static ssize_t module_attr_store(struct kobject *kobj, in module_attr_store()
968 static int uevent_filter(struct kset *kset, struct kobject *kobj) in uevent_filter()
984 static void module_kobj_release(struct kobject *kobj) in module_kobj_release()
/linux-4.4.14/kernel/power/
Dmain.c51 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show()
57 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store()
86 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show()
107 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store()
247 static ssize_t pm_print_times_show(struct kobject *kobj, in pm_print_times_show()
253 static ssize_t pm_print_times_store(struct kobject *kobj, in pm_print_times_store()
276 static ssize_t pm_wakeup_irq_show(struct kobject *kobj, in pm_wakeup_irq_show()
283 static ssize_t pm_wakeup_irq_store(struct kobject *kobj, in pm_wakeup_irq_store()
295 struct kobject *power_kobj;
307 static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, in state_show()
[all …]
Dhibernate.c909 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show()
943 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store()
993 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show()
1000 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store()
1029 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show()
1035 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store()
1050 static ssize_t reserved_size_show(struct kobject *kobj, in reserved_size_show()
1056 static ssize_t reserved_size_store(struct kobject *kobj, in reserved_size_store()
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h90 struct kobject *kobj;
113 struct kobject *kobj;
131 struct kobject *kobj;
146 struct kobject *kobj_node;
147 struct kobject *kobj_mem;
148 struct kobject *kobj_cache;
149 struct kobject *kobj_iolink;
161 struct kobject *kobj_topology;
162 struct kobject *kobj_nodes;
Dkfd_topology.c498 static ssize_t sysprops_show(struct kobject *kobj, struct attribute *attr, in sysprops_show()
530 static ssize_t iolink_show(struct kobject *kobj, struct attribute *attr, in iolink_show()
565 static ssize_t mem_show(struct kobject *kobj, struct attribute *attr, in mem_show()
592 static ssize_t kfd_cache_show(struct kobject *kobj, struct attribute *attr, in kfd_cache_show()
631 static ssize_t node_show(struct kobject *kobj, struct attribute *attr, in node_show()
753 static void kfd_remove_sysfs_file(struct kobject *kobj, struct attribute *attr) in kfd_remove_sysfs_file()
873 mem->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
892 cache->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
911 iolink->kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in kfd_build_sysfs_node_entry()
/linux-4.4.14/Documentation/zh_CN/filesystems/
Dsysfs.txt27 sysfs - 用于导出内核对象(kobject)的文件系统
42 sysfs 始终与 kobject 的底层结构紧密相关。请阅读
43 Documentation/kobject.txt 文档以获得更多关于 kobject 接口的
59 任何 kobject 在系统中注册,就会有一个目录在 sysfs 中被创建。这个
60 目录是作为该 kobject 的父对象所在目录的子目录创建的,以准确地传递
65 目录的 kobject 的指针。以前,这个 kobject 指针被 sysfs 直接用于
66 kobject 文件打开和关闭的引用计数。而现在的 sysfs 实现中,kobject
73 kobject 的属性可在文件系统中以普通文件的形式导出。Sysfs 为属性定义
94 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
95 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
[all …]
/linux-4.4.14/net/batman-adv/
Dsysfs.h26 struct kobject;
40 ssize_t (*show)(struct kobject *kobj, struct attribute *attr,
42 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
48 int batadv_sysfs_add_hardif(struct kobject **hardif_obj,
50 void batadv_sysfs_del_hardif(struct kobject **hardif_obj);
Dsysfs.c48 static struct net_device *batadv_kobj_to_netdev(struct kobject *obj) in batadv_kobj_to_netdev()
55 static struct batadv_priv *batadv_kobj_to_batpriv(struct kobject *obj) in batadv_kobj_to_batpriv()
68 static struct batadv_priv *batadv_vlan_kobj_to_batpriv(struct kobject *obj) in batadv_vlan_kobj_to_batpriv()
89 batadv_kobj_to_vlan(struct batadv_priv *bat_priv, struct kobject *obj) in batadv_kobj_to_vlan()
142 ssize_t batadv_store_##_name(struct kobject *kobj, \
154 ssize_t batadv_show_##_name(struct kobject *kobj, \
174 ssize_t batadv_store_##_name(struct kobject *kobj, \
187 ssize_t batadv_show_##_name(struct kobject *kobj, \
205 ssize_t batadv_store_vlan_##_name(struct kobject *kobj, \
221 ssize_t batadv_show_vlan_##_name(struct kobject *kobj, \
[all …]
Dtypes.h110 struct kobject *hardif_obj;
718 struct kobject *kobj;
810 struct kobject *mesh_obj;
/linux-4.4.14/arch/x86/kernel/
Dksysfs.c23 static ssize_t version_show(struct kobject *kobj, in version_show()
31 static ssize_t boot_params_data_read(struct file *fp, struct kobject *kobj, in boot_params_data_read()
63 static int kobj_to_setup_data_nr(struct kobject *kobj, int *nr) in kobj_to_setup_data_nr()
116 static ssize_t type_show(struct kobject *kobj, in type_show()
140 struct kobject *kobj, in setup_data_data_read()
210 static int __init create_setup_data_node(struct kobject *parent, in create_setup_data_node()
211 struct kobject **kobjp, int nr) in create_setup_data_node()
215 struct kobject *kobj; in create_setup_data_node()
239 static void __init cleanup_setup_data_node(struct kobject *kobj) in cleanup_setup_data_node()
266 static int __init create_setup_data_nodes(struct kobject *parent) in create_setup_data_nodes()
[all …]
/linux-4.4.14/fs/btrfs/
Dsysfs.c35 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj);
36 static inline struct btrfs_fs_devices *to_fs_devs(struct kobject *kobj);
93 static ssize_t btrfs_feature_attr_show(struct kobject *kobj, in btrfs_feature_attr_show()
109 static ssize_t btrfs_feature_attr_store(struct kobject *kobj, in btrfs_feature_attr_store()
174 static umode_t btrfs_feature_visible(struct kobject *kobj, in btrfs_feature_visible()
236 static ssize_t global_rsv_size_show(struct kobject *kobj, in global_rsv_size_show()
245 static ssize_t global_rsv_reserved_show(struct kobject *kobj, in global_rsv_reserved_show()
257 static ssize_t raid_bytes_show(struct kobject *kobj,
262 static ssize_t raid_bytes_show(struct kobject *kobj, in raid_bytes_show()
288 static void release_raid_kobj(struct kobject *kobj) in release_raid_kobj()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-sysctl.c56 ssize_t (*show)(struct kobject *kobj, struct attribute *attr,
58 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
64 static ssize_t static_uintvalue_show(struct kobject *kobj, in static_uintvalue_show()
73 static ssize_t static_uintvalue_store(struct kobject *kobj, in static_uintvalue_store()
99 static ssize_t max_dirty_mb_show(struct kobject *kobj, struct attribute *attr, in max_dirty_mb_show()
106 static ssize_t max_dirty_mb_store(struct kobject *kobj, struct attribute *attr, in max_dirty_mb_store()
Dlinux-module.c216 static ssize_t version_show(struct kobject *kobj, struct attribute *attr, in version_show()
222 static ssize_t pinger_show(struct kobject *kobj, struct attribute *attr, in pinger_show()
228 static ssize_t health_show(struct kobject *kobj, struct attribute *attr, in health_show()
269 static ssize_t jobid_var_show(struct kobject *kobj, struct attribute *attr, in jobid_var_show()
275 static ssize_t jobid_var_store(struct kobject *kobj, struct attribute *attr, in jobid_var_store()
293 static ssize_t jobid_name_show(struct kobject *kobj, struct attribute *attr, in jobid_name_show()
299 static ssize_t jobid_name_store(struct kobject *kobj, struct attribute *attr, in jobid_name_store()
414 struct kobject *lustre_kobj;
/linux-4.4.14/samples/kobject/
Dkobject-example.c30 static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr, in foo_show()
36 static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr, in foo_store()
56 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, in b_show()
68 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, in b_store()
111 static struct kobject *example_kobj;
Dkset-example.c32 struct kobject kobj;
54 static ssize_t foo_attr_show(struct kobject *kobj, in foo_attr_show()
74 static ssize_t foo_attr_store(struct kobject *kobj, in foo_attr_store()
103 static void foo_release(struct kobject *kobj) in foo_release()
DMakefile1 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dlproc_osc.c45 static ssize_t active_show(struct kobject *kobj, struct attribute *attr, in active_show()
54 static ssize_t active_store(struct kobject *kobj, struct attribute *attr, in active_store()
80 static ssize_t max_rpcs_in_flight_show(struct kobject *kobj, in max_rpcs_in_flight_show()
91 static ssize_t max_rpcs_in_flight_store(struct kobject *kobj, in max_rpcs_in_flight_store()
132 static ssize_t max_dirty_mb_show(struct kobject *kobj, in max_dirty_mb_show()
150 static ssize_t max_dirty_mb_store(struct kobject *kobj, in max_dirty_mb_store()
233 static ssize_t cur_dirty_bytes_show(struct kobject *kobj, in cur_dirty_bytes_show()
250 static ssize_t cur_grant_bytes_show(struct kobject *kobj, in cur_grant_bytes_show()
266 static ssize_t cur_grant_bytes_store(struct kobject *kobj, in cur_grant_bytes_store()
297 static ssize_t cur_lost_grant_bytes_show(struct kobject *kobj, in cur_lost_grant_bytes_show()
[all …]
/linux-4.4.14/drivers/pci/hotplug/
Drpadlpar_sysfs.c32 static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, in add_slot_store()
56 static ssize_t add_slot_show(struct kobject *kobj, in add_slot_show()
62 static ssize_t remove_slot_store(struct kobject *kobj, in remove_slot_store()
87 static ssize_t remove_slot_show(struct kobject *kobj, in remove_slot_show()
109 static struct kobject *dlpar_kobj;
Dacpiphp_ibm.c100 static ssize_t ibm_read_apci_table(struct file *filp, struct kobject *kobj,
356 static ssize_t ibm_read_apci_table(struct file *filp, struct kobject *kobj, in ibm_read_apci_table()
422 struct kobject *sysdir = &pci_slots_kset->kobj; in ibm_acpiphp_init()
469 struct kobject *sysdir = &pci_slots_kset->kobj; in ibm_acpiphp_exit()
/linux-4.4.14/fs/nilfs2/
Dsysfs.h42 struct kobject sg_superblock_kobj;
46 struct kobject sg_segctor_kobj;
50 struct kobject sg_mounted_snapshots_kobj;
54 struct kobject sg_checkpoints_kobj;
58 struct kobject sg_segments_kobj;
65 ssize_t (*show)(struct kobject *, struct attribute *, \
67 ssize_t (*store)(struct kobject *, struct attribute *, \
Dsysfs.c45 static ssize_t nilfs_##name##_attr_show(struct kobject *kobj, \
56 static ssize_t nilfs_##name##_attr_store(struct kobject *kobj, \
74 static void nilfs_##name##_attr_release(struct kobject *kobj) \
92 struct kobject *parent; \
93 struct kobject *kobj; \
157 static ssize_t nilfs_snapshot_attr_show(struct kobject *kobj, in nilfs_snapshot_attr_show()
168 static ssize_t nilfs_snapshot_attr_store(struct kobject *kobj, in nilfs_snapshot_attr_store()
180 static void nilfs_snapshot_attr_release(struct kobject *kobj) in nilfs_snapshot_attr_release()
201 struct kobject *parent; in nilfs_sysfs_create_snapshot_group()
952 static ssize_t nilfs_dev_attr_show(struct kobject *kobj, in nilfs_dev_attr_show()
[all …]
Dthe_nilfs.h201 struct kobject ns_dev_kobj;
263 struct kobject snapshot_kobj;
/linux-4.4.14/drivers/edac/
Dedac_device_sysfs.c117 static ssize_t edac_dev_ctl_info_show(struct kobject *kobj, in edac_dev_ctl_info_show()
129 static ssize_t edac_dev_ctl_info_store(struct kobject *kobj, in edac_dev_ctl_info_store()
201 static void edac_device_ctrl_master_release(struct kobject *kobj) in edac_device_ctrl_master_release()
250 memset(&edac_dev->kobj, 0, sizeof(struct kobject)); in edac_device_register_sysfs_main_kobj()
333 static void edac_device_ctrl_instance_release(struct kobject *kobj) in edac_device_ctrl_instance_release()
354 static ssize_t edac_dev_instance_show(struct kobject *kobj, in edac_dev_instance_show()
366 static ssize_t edac_dev_instance_store(struct kobject *kobj, in edac_dev_instance_store()
422 static ssize_t block_ue_count_show(struct kobject *kobj, in block_ue_count_show()
430 static ssize_t block_ce_count_show(struct kobject *kobj, in block_ce_count_show()
439 static void edac_device_ctrl_block_release(struct kobject *kobj) in edac_device_ctrl_block_release()
[all …]
Dedac_pci_sysfs.c29 static struct kobject *edac_pci_top_main_kobj;
74 static void edac_pci_instance_release(struct kobject *kobj) in edac_pci_instance_release()
97 static ssize_t edac_pci_instance_show(struct kobject *kobj, in edac_pci_instance_show()
109 static ssize_t edac_pci_instance_store(struct kobject *kobj, in edac_pci_instance_store()
158 struct kobject *main_kobj; in edac_pci_create_instance_kobj()
238 static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, in edac_pci_dev_show()
249 static ssize_t edac_pci_dev_store(struct kobject *kobj, in edac_pci_dev_store()
314 static void edac_pci_release_main_kobj(struct kobject *kobj) in edac_pci_release_main_kobj()
370 edac_pci_top_main_kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in edac_pci_main_kobj_setup()
442 struct kobject *edac_kobj = &pci->kobj; in edac_pci_create_sysfs()
Dedac_core.h172 ssize_t (*show)(struct kobject *, struct attribute *, char *);
173 ssize_t (*store)(struct kobject *, struct attribute *,
193 struct kobject kobj;
207 struct kobject kobj;
290 struct kobject kobj;
382 struct kobject kobj;
/linux-4.4.14/sound/hda/
Dhdac_sysfs.c13 struct kobject *root;
14 struct kobject *afg;
15 struct kobject **nodes;
95 static int get_codec_nid(struct kobject *kobj, struct hdac_device **codecp) in get_codec_nid()
108 static ssize_t widget_attr_show(struct kobject *kobj, struct attribute *attr, in widget_attr_show()
124 static ssize_t widget_attr_store(struct kobject *kobj, struct attribute *attr, in widget_attr_store()
145 static void widget_release(struct kobject *kobj) in widget_release()
310 static void free_widget_node(struct kobject *kobj, in free_widget_node()
322 struct kobject **p; in widget_tree_free()
337 static int add_widget_node(struct kobject *parent, hda_nid_t nid, in add_widget_node()
[all …]
/linux-4.4.14/drivers/parisc/
Dpdc_stable.c106 struct kobject kobj;
448 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show()
468 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, in pdcspath_attr_store()
528 static ssize_t pdcs_size_read(struct kobject *kobj, in pdcs_size_read()
548 static ssize_t pdcs_auto_read(struct kobject *kobj, in pdcs_auto_read()
573 static ssize_t pdcs_autoboot_read(struct kobject *kobj, in pdcs_autoboot_read()
583 static ssize_t pdcs_autosearch_read(struct kobject *kobj, in pdcs_autosearch_read()
595 static ssize_t pdcs_timer_read(struct kobject *kobj, in pdcs_timer_read()
620 static ssize_t pdcs_osid_read(struct kobject *kobj, in pdcs_osid_read()
640 static ssize_t pdcs_osdep1_read(struct kobject *kobj, in pdcs_osdep1_read()
[all …]
/linux-4.4.14/fs/exofs/
Dsys.c33 static ssize_t odev_attr_show(struct kobject *kobj, struct attribute *attr, in odev_attr_show()
42 static ssize_t odev_attr_store(struct kobject *kobj, struct attribute *attr, in odev_attr_store()
120 struct kobject *k_name, *k_tmp; in exofs_sysfs_dbg_print()
136 struct kobject *k_name, *k_tmp; in exofs_sysfs_sb_del()
137 struct kobject *s_kobj = &sbi->s_kobj; in exofs_sysfs_sb_del()
155 struct kobject *s_kobj; in exofs_sysfs_sb_add()
174 struct kobject *d_kobj; in exofs_sysfs_odev_add()
Dexofs.h61 struct kobject ed_kobj;
79 struct kobject s_kobj; /* holds per-sbi kobject */
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c51 static ssize_t blocksize_show(struct kobject *kobj, struct attribute *attr, in blocksize_show()
69 static ssize_t kbytestotal_show(struct kobject *kobj, struct attribute *attr, in kbytestotal_show()
94 static ssize_t kbytesfree_show(struct kobject *kobj, struct attribute *attr, in kbytesfree_show()
119 static ssize_t kbytesavail_show(struct kobject *kobj, struct attribute *attr, in kbytesavail_show()
144 static ssize_t filestotal_show(struct kobject *kobj, struct attribute *attr, in filestotal_show()
162 static ssize_t filesfree_show(struct kobject *kobj, struct attribute *attr, in filesfree_show()
180 static ssize_t client_type_show(struct kobject *kobj, struct attribute *attr, in client_type_show()
191 static ssize_t fstype_show(struct kobject *kobj, struct attribute *attr, in fstype_show()
201 static ssize_t uuid_show(struct kobject *kobj, struct attribute *attr, in uuid_show()
224 static ssize_t max_read_ahead_mb_show(struct kobject *kobj, in max_read_ahead_mb_show()
[all …]
/linux-4.4.14/drivers/firmware/efi/
Druntime-map.c23 struct kobject kobj; /* kobject for each entry */
56 static inline struct efi_runtime_map_entry *to_map_entry(struct kobject *kobj) in to_map_entry()
61 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show()
92 static void map_release(struct kobject *kobj) in map_release()
109 add_sysfs_runtime_map_entry(struct kobject *kobj, int nr) in add_sysfs_runtime_map_entry()
171 int __init efi_runtime_map_init(struct kobject *efi_kobj) in efi_runtime_map_init()
Desrt.c65 struct kobject kobj;
80 static struct esre_entry *to_entry(struct kobject *kobj) in to_entry()
90 static ssize_t esre_attr_show(struct kobject *kobj, in esre_attr_show()
149 static void esre_release(struct kobject *kobj) in esre_release()
164 static struct kobject *esrt_kobj;
198 static ssize_t esrt_##name##_show(struct kobject *kobj, \
227 static umode_t esrt_attr_is_visible(struct kobject *kobj, in esrt_attr_is_visible()
Defivars.c350 static ssize_t efivar_attr_show(struct kobject *kobj, struct attribute *attr, in efivar_attr_show()
366 static ssize_t efivar_attr_store(struct kobject *kobj, struct attribute *attr, in efivar_attr_store()
387 static void efivar_release(struct kobject *kobj) in efivar_release()
414 static ssize_t efivar_create(struct file *filp, struct kobject *kobj, in efivar_create()
484 static ssize_t efivar_delete(struct file *filp, struct kobject *kobj, in efivar_delete()
714 struct kobject *parent_kobj = efivars_kobject(); in efivars_sysfs_init()
Defi.c77 struct kobject *efi_kobj;
83 static ssize_t systab_show(struct kobject *kobj, in systab_show()
122 static ssize_t name##_show(struct kobject *kobj, \
132 static ssize_t fw_platform_size_show(struct kobject *kobj, in fw_platform_size_show()
153 static umode_t efi_attr_is_visible(struct kobject *kobj, in efi_attr_is_visible()
Dvars.c1108 struct kobject *efivars_kobject(void) in efivars_kobject()
1113 return __efivars->kobject; in efivars_kobject()
1137 struct kobject *kobject) in efivars_register() argument
1141 efivars->kobject = kobject; in efivars_register()
/linux-4.4.14/drivers/w1/slaves/
Dw1_ds2408.c75 static ssize_t state_read(struct file *filp, struct kobject *kobj, in state_read()
87 static ssize_t output_read(struct file *filp, struct kobject *kobj, in output_read()
100 static ssize_t activity_read(struct file *filp, struct kobject *kobj, in activity_read()
113 static ssize_t cond_search_mask_read(struct file *filp, struct kobject *kobj, in cond_search_mask_read()
127 struct kobject *kobj, in cond_search_polarity_read()
137 static ssize_t status_control_read(struct file *filp, struct kobject *kobj, in status_control_read()
147 static ssize_t output_write(struct file *filp, struct kobject *kobj, in output_write()
218 static ssize_t activity_write(struct file *filp, struct kobject *kobj, in activity_write()
248 static ssize_t status_control_write(struct file *filp, struct kobject *kobj, in status_control_write()
Dw1_ds28e04.c121 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, in eeprom_read()
229 static ssize_t eeprom_write(struct file *filp, struct kobject *kobj, in eeprom_write()
285 static ssize_t pio_read(struct file *filp, struct kobject *kobj, in pio_read()
304 static ssize_t pio_write(struct file *filp, struct kobject *kobj, in pio_write()
Dw1_ds2413.c33 static ssize_t state_read(struct file *filp, struct kobject *kobj, in state_read()
70 static ssize_t output_write(struct file *filp, struct kobject *kobj, in output_write()
Dw1_ds2406.c32 struct file *filp, struct kobject *kobj, in w1_f12_read_state()
69 struct file *filp, struct kobject *kobj, in w1_f12_write_output()
Dw1_ds2431.c99 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, in eeprom_read()
205 static ssize_t eeprom_write(struct file *filp, struct kobject *kobj, in eeprom_write()
Dw1_ds2433.c96 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, in eeprom_read()
210 static ssize_t eeprom_write(struct file *filp, struct kobject *kobj, in eeprom_write()
/linux-4.4.14/drivers/s390/char/
Dsclp_cpi_sys.c221 static ssize_t system_name_show(struct kobject *kobj, in system_name_show()
232 static ssize_t system_name_store(struct kobject *kobj, in system_name_store()
253 static ssize_t sysplex_name_show(struct kobject *kobj, in sysplex_name_show()
264 static ssize_t sysplex_name_store(struct kobject *kobj, in sysplex_name_store()
285 static ssize_t system_type_show(struct kobject *kobj, in system_type_show()
296 static ssize_t system_type_store(struct kobject *kobj, in system_type_store()
317 static ssize_t system_level_show(struct kobject *kobj, in system_level_show()
328 static ssize_t system_level_store(struct kobject *kobj, in system_level_store()
354 static ssize_t set_store(struct kobject *kobj, in set_store()
Dsclp_ocf.c88 static ssize_t cpc_name_show(struct kobject *kobj, in cpc_name_show()
102 static ssize_t hmc_network_show(struct kobject *kobj, in hmc_network_show()
/linux-4.4.14/arch/s390/kernel/
Dipl.c194 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
202 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
235 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
252 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
299 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show()
352 static ssize_t ipl_vm_parm_show(struct kobject *kobj, in ipl_vm_parm_show()
419 static ssize_t sys_ipl_device_show(struct kobject *kobj, in sys_ipl_device_show()
438 static ssize_t ipl_parameter_read(struct file *filp, struct kobject *kobj, in ipl_parameter_read()
449 static ssize_t ipl_scp_data_read(struct file *filp, struct kobject *kobj, in ipl_scp_data_read()
478 static ssize_t ipl_ccw_loadparm_show(struct kobject *kobj, in ipl_ccw_loadparm_show()
[all …]
/linux-4.4.14/drivers/staging/most/hdm-dim2/
Ddim2_sysfs.c46 static void bus_kobj_release(struct kobject *kobj) in bus_kobj_release()
50 static ssize_t bus_kobj_attr_show(struct kobject *kobj, struct attribute *attr, in bus_kobj_attr_show()
63 static ssize_t bus_kobj_attr_store(struct kobject *kobj, struct attribute *attr, in bus_kobj_attr_store()
88 int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj) in dim2_sysfs_probe()
Ddim2_sysfs.h24 struct kobject kobj_group;
29 int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj);
/linux-4.4.14/arch/x86/platform/uv/
Duv_sysfs.c26 struct kobject *sgi_uv_kobj;
28 static ssize_t partition_id_show(struct kobject *kobj, in partition_id_show()
34 static ssize_t coherence_id_show(struct kobject *kobj, in coherence_id_show()
/linux-4.4.14/arch/powerpc/kernel/
Dcacheinfo.c31 struct kobject *kobj; /* bare (not embedded) kobject for cache
41 struct kobject kobj;
133 static struct cache_index_dir *kobj_to_cache_index_dir(struct kobject *k) in kobj_to_cache_index_dir()
482 struct kobject *kobj = NULL; in cacheinfo_create_cache_dir()
509 static void cache_index_release(struct kobject *kobj) in cache_index_release()
521 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show()
530 static struct cache *index_kobj_to_cache(struct kobject *k) in index_kobj_to_cache()
539 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show()
556 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show()
572 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show()
[all …]
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dpower.c32 static ssize_t auto_poweron_show(struct kobject *kobj, in auto_poweron_show()
38 static ssize_t auto_poweron_store(struct kobject *kobj, in auto_poweron_store()
57 struct kobject *power_kobj;
/linux-4.4.14/drivers/cpuidle/
Dsysfs.c178 struct kobject kobj;
181 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device()
189 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show()
204 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store()
224 static void cpuidle_sysfs_release(struct kobject *kobj) in cpuidle_sysfs_release()
330 struct kobject kobj;
338 static ssize_t cpuidle_state_show(struct kobject *kobj, struct attribute *attr, in cpuidle_state_show()
352 static ssize_t cpuidle_state_store(struct kobject *kobj, struct attribute *attr, in cpuidle_state_store()
371 static void cpuidle_state_sysfs_release(struct kobject *kobj) in cpuidle_state_sysfs_release()
454 struct kobject kobj;
[all …]
/linux-4.4.14/drivers/hid/
Dhid-roccat-common.h43 ssize_t roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj,
46 ssize_t roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj,
52 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
61 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
Dhid-roccat-lua.c29 static ssize_t lua_sysfs_read(struct file *fp, struct kobject *kobj, in lua_sysfs_read()
51 static ssize_t lua_sysfs_write(struct file *fp, struct kobject *kobj, in lua_sysfs_write()
72 struct kobject *kobj, struct bin_attribute *attr, \
81 struct kobject *kobj, struct bin_attribute *attr, \
Dhid-roccat-pyra.c89 static ssize_t pyra_sysfs_read(struct file *fp, struct kobject *kobj, in pyra_sysfs_read()
115 static ssize_t pyra_sysfs_write(struct file *fp, struct kobject *kobj, in pyra_sysfs_write()
140 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
149 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
191 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_settings()
210 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_buttons()
248 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_write_settings()
Dhid-roccat-koneplus.c86 static ssize_t koneplus_sysfs_read(struct file *fp, struct kobject *kobj, in koneplus_sysfs_read()
112 static ssize_t koneplus_sysfs_write(struct file *fp, struct kobject *kobj, in koneplus_sysfs_write()
138 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
147 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
193 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_settings()
212 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_buttons()
Dhid-roccat-kovaplus.c127 static ssize_t kovaplus_sysfs_read(struct file *fp, struct kobject *kobj, in kovaplus_sysfs_read()
153 static ssize_t kovaplus_sysfs_write(struct file *fp, struct kobject *kobj, in kovaplus_sysfs_write()
179 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
188 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
221 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_settings()
240 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_buttons()
Dhid-roccat-common.c133 ssize_t roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj, in roccat_common2_sysfs_read()
157 ssize_t roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj, in roccat_common2_sysfs_write()
Dhid-roccat-isku.c120 static ssize_t isku_sysfs_read(struct file *fp, struct kobject *kobj, in isku_sysfs_read()
143 static ssize_t isku_sysfs_write(struct file *fp, struct kobject *kobj, in isku_sysfs_write()
165 static ssize_t isku_sysfs_write_ ## thingy(struct file *fp, struct kobject *kobj, \
174 static ssize_t isku_sysfs_read_ ## thingy(struct file *fp, struct kobject *kobj, \
Dhid-roccat-arvo.c191 struct kobject *kobj, void const *buf, in arvo_sysfs_write()
211 struct kobject *kobj, void *buf, loff_t off, in arvo_sysfs_read()
234 struct kobject *kobj, struct bin_attribute *attr, char *buf, in arvo_sysfs_write_button()
244 struct kobject *kobj, struct bin_attribute *attr, char *buf, in arvo_sysfs_read_info()
Dwacom.h126 struct kobject *remote_dir;
Dhid-roccat-kone.c269 static ssize_t kone_sysfs_read_settings(struct file *fp, struct kobject *kobj, in kone_sysfs_read_settings()
294 static ssize_t kone_sysfs_write_settings(struct file *fp, struct kobject *kobj, in kone_sysfs_write_settings()
333 struct kobject *kobj, struct bin_attribute *attr, in kone_sysfs_read_profilex()
354 struct kobject *kobj, struct bin_attribute *attr, in kone_sysfs_write_profilex()
/linux-4.4.14/drivers/base/
Dcore.c49 static struct kobject *dev_kobj;
50 struct kobject *sysfs_dev_char_kobj;
51 struct kobject *sysfs_dev_block_kobj;
113 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, in dev_attr_show()
129 static ssize_t dev_attr_store(struct kobject *kobj, struct attribute *attr, in dev_attr_store()
226 static void device_release(struct kobject *kobj) in device_release()
255 static const void *device_namespace(struct kobject *kobj) in device_namespace()
273 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter()
287 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name()
298 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent()
[all …]
Dbase.h47 struct kobject kobj;
102 struct kobject *virtual_device_parent(struct device *dev);
131 extern char *make_class_name(const char *name, struct kobject *kobj);
Dmap.c95 struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index) in kobj_lookup()
97 struct kobject *kobj; in kobj_lookup()
104 struct kobject *(*probe)(dev_t, int *, void *); in kobj_lookup()
Dclass.c26 static ssize_t class_attr_show(struct kobject *kobj, struct attribute *attr, in class_attr_show()
38 static ssize_t class_attr_store(struct kobject *kobj, struct attribute *attr, in class_attr_store()
50 static void class_release(struct kobject *kobj) in class_release()
66 static const struct kobj_ns_type_operations *class_child_ns_type(struct kobject *kobj) in class_child_ns_type()
500 struct kobject *kobj;
Dbus.c55 static ssize_t drv_attr_show(struct kobject *kobj, struct attribute *attr, in drv_attr_show()
67 static ssize_t drv_attr_store(struct kobject *kobj, struct attribute *attr, in drv_attr_store()
84 static void driver_release(struct kobject *kobj) in driver_release()
100 static ssize_t bus_attr_show(struct kobject *kobj, struct attribute *attr, in bus_attr_show()
112 static ssize_t bus_attr_store(struct kobject *kobj, struct attribute *attr, in bus_attr_store()
150 static void bus_release(struct kobject *kobj) in bus_release()
165 static int bus_uevent_filter(struct kset *kset, struct kobject *kobj) in bus_uevent_filter()
836 struct kobject *k = kset_find_obj(bus_kset, name);
1189 struct kobject *parent_of_root) in subsys_register()
1268 struct kobject *virtual_dir; in subsys_virtual_register()
Dfirmware.c18 struct kobject *firmware_kobj;
Dhypervisor.c16 struct kobject *hypervisor_kobj;
Ddevcoredump.c88 static ssize_t devcd_data_read(struct file *filp, struct kobject *kobj, in devcd_data_read()
98 static ssize_t devcd_data_write(struct file *filp, struct kobject *kobj, in devcd_data_write()
Dmodule.c45 struct kobject *mkobj; in module_add_driver()
/linux-4.4.14/drivers/md/
Ddm.h163 struct kobject kobj;
167 static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) in dm_get_completion_from_kobject()
174 struct kobject *dm_kobject(struct mapped_device *md);
175 struct mapped_device *dm_get_from_kobject(struct kobject *kobj);
180 void dm_kobject_release(struct kobject *kobj);
Ddm-uevent.h33 extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
48 struct kobject *kobj) in dm_send_uevents()
Ddm-sysfs.c21 static ssize_t dm_attr_show(struct kobject *kobj, struct attribute *attr, in dm_attr_show()
46 static ssize_t dm_attr_store(struct kobject *kobj, struct attribute *attr, in dm_attr_store()
141 struct kobject *kobj = dm_kobject(md); in dm_sysfs_exit()
Ddm-builtin.c43 void dm_kobject_release(struct kobject *kobj) in dm_kobject_release()
/linux-4.4.14/include/drm/ttm/
Dttm_module.h35 struct kobject;
38 extern struct kobject *ttm_get_kobj(void);
Dttm_memory.h78 struct kobject kobj;
/linux-4.4.14/fs/
Dchar_dev.c322 static struct kobject *cdev_get(struct cdev *p) in cdev_get()
325 struct kobject *kobj; in cdev_get()
357 struct kobject *kobj; in chrdev_open()
430 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match()
488 static void cdev_default_release(struct kobject *kobj) in cdev_default_release()
491 struct kobject *parent = kobj->parent; in cdev_default_release()
497 static void cdev_dynamic_release(struct kobject *kobj) in cdev_dynamic_release()
500 struct kobject *parent = kobj->parent; in cdev_dynamic_release()
546 static struct kobject *base_probe(dev_t dev, int *part, void *data) in base_probe()
/linux-4.4.14/drivers/staging/speakup/
Dkobjects.c28 static ssize_t chars_chartab_show(struct kobject *kobj, in chars_chartab_show()
108 static ssize_t chars_chartab_store(struct kobject *kobj, in chars_chartab_store()
224 static ssize_t keymap_show(struct kobject *kobj, struct kobj_attribute *attr, in keymap_show()
260 static ssize_t keymap_store(struct kobject *kobj, struct kobj_attribute *attr, in keymap_store()
327 static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr, in silent_store()
366 static ssize_t synth_show(struct kobject *kobj, struct kobj_attribute *attr, in synth_show()
381 static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr, in synth_store()
407 static ssize_t synth_direct_store(struct kobject *kobj, in synth_direct_store()
434 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, in version_show()
450 static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr, in punc_show()
[all …]
Dspk_priv.h59 ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr,
61 ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
/linux-4.4.14/Documentation/filesystems/
Dsysfs.txt18 sysfs is tied inherently to the kobject infrastructure. Please read
19 Documentation/kobject.txt for more information concerning the kobject
35 For every kobject that is registered with the system, a directory is
37 of the kobject's parent, expressing internal object hierarchies to
42 Sysfs internally stores a pointer to the kobject that implements a
44 the past this kobject pointer has been used by sysfs to do reference
45 counting directly on the kobject whenever the file is opened or closed.
46 With the current sysfs implementation the kobject reference count is
77 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
78 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
[all …]
/linux-4.4.14/drivers/md/bcache/
Dbcache.h249 struct kobject kobj;
386 struct kobject kobj;
475 struct kobject kobj;
476 struct kobject internal;
896 void bch_cached_dev_release(struct kobject *);
897 void bch_flash_dev_release(struct kobject *);
898 void bch_cache_set_release(struct kobject *);
899 void bch_cache_release(struct kobject *);
924 int bch_debug_init(struct kobject *);
Dstats.h15 struct kobject kobj;
49 struct kobject *parent);
Dsysfs.h15 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\
19 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\
Dstats.c78 static void bch_stats_release(struct kobject *k) in bch_stats_release()
96 struct kobject *parent) in bch_cache_accounting_add_kobjs()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-flash.c154 static ssize_t validate_show(struct kobject *kobj, in validate_show()
194 static ssize_t validate_store(struct kobject *kobj, in validate_store()
239 static ssize_t manage_show(struct kobject *kobj, in manage_show()
256 static ssize_t manage_store(struct kobject *kobj, in manage_store()
350 static ssize_t update_show(struct kobject *kobj, in update_show()
362 static ssize_t update_store(struct kobject *kobj, in update_store()
464 static ssize_t image_data_write(struct file *filp, struct kobject *kobj, in image_data_write()
Dopal-elog.c25 struct kobject kobj;
94 static ssize_t elog_attr_show(struct kobject *kobj, in elog_attr_show()
110 static ssize_t elog_attr_store(struct kobject *kobj, in elog_attr_store()
131 static void elog_release(struct kobject *kobj) in elog_release()
156 static ssize_t raw_attr_read(struct file *filep, struct kobject *kobj, in raw_attr_read()
Dopal-dump.c25 struct kobject kobj;
158 static ssize_t dump_attr_show(struct kobject *kobj, in dump_attr_show()
174 static ssize_t dump_attr_store(struct kobject *kobj, in dump_attr_store()
195 static void dump_release(struct kobject *kobj) in dump_release()
283 static ssize_t dump_attr_read(struct file *filep, struct kobject *kobj, in dump_attr_read()
Dopal-sysparam.c32 static struct kobject *sysparam_kobj;
114 static ssize_t sys_param_show(struct kobject *kobj, in sys_param_show()
135 static ssize_t sys_param_store(struct kobject *kobj, in sys_param_store()
Dopal-msglog.c34 static ssize_t opal_msglog_read(struct file *file, struct kobject *kobj, in opal_msglog_read()
/linux-4.4.14/arch/sh/kernel/cpu/sh4/
Dsq.c259 static struct kobject *sq_kobject[NR_CPUS];
269 static ssize_t sq_sysfs_show(struct kobject *kobj, struct attribute *attr, in sq_sysfs_show()
280 static ssize_t sq_sysfs_store(struct kobject *kobj, struct attribute *attr, in sq_sysfs_store()
343 struct kobject *kobj; in sq_dev_add()
346 sq_kobject[cpu] = kzalloc(sizeof(struct kobject), GFP_KERNEL); in sq_dev_add()
361 struct kobject *kobj = sq_kobject[cpu]; in sq_dev_remove()
/linux-4.4.14/drivers/firmware/
Dmemmap.c44 struct kobject kobj; /* kobject for each entry */
50 static ssize_t memmap_attr_show(struct kobject *kobj,
101 to_memmap_entry(struct kobject *kobj) in to_memmap_entry()
106 static void __meminit release_firmware_map_entry(struct kobject *kobj) in release_firmware_map_entry()
399 static ssize_t memmap_attr_show(struct kobject *kobj, in memmap_attr_show()
Ddmi-sysfs.c34 struct kobject kobj;
38 struct kobject *child;
81 static void dmi_entry_free(struct kobject *kobj) in dmi_entry_free()
86 static struct dmi_sysfs_entry *to_entry(struct kobject *kobj) in to_entry()
96 static ssize_t dmi_sysfs_attr_show(struct kobject *kobj, in dmi_sysfs_attr_show()
213 static ssize_t dmi_entry_attr_show(struct kobject *kobj, in dmi_entry_attr_show()
428 static ssize_t dmi_sel_raw_read(struct file *filp, struct kobject *kobj, in dmi_sel_raw_read()
534 struct kobject *kobj, in dmi_entry_raw_read()
553 static void dmi_sysfs_entry_release(struct kobject *kobj) in dmi_sysfs_entry_release()
Ddell_rbu.c525 static ssize_t read_rbu_data(struct file *filp, struct kobject *kobj, in read_rbu_data()
579 static ssize_t read_rbu_image_type(struct file *filp, struct kobject *kobj, in read_rbu_image_type()
589 static ssize_t write_rbu_image_type(struct file *filp, struct kobject *kobj, in write_rbu_image_type()
650 static ssize_t read_rbu_packet_size(struct file *filp, struct kobject *kobj, in read_rbu_packet_size()
663 static ssize_t write_rbu_packet_size(struct file *filp, struct kobject *kobj, in write_rbu_packet_size()
/linux-4.4.14/drivers/staging/most/mostcore/
Dmostcore.h27 struct kobject;
267 struct kobject *parent, char *name);
284 struct kobject *most_register_interface(struct most_interface *iface);
Dcore.c48 struct kobject kobj;
81 struct kobject kobj;
133 static ssize_t channel_attr_show(struct kobject *kobj, struct attribute *attr, in channel_attr_show()
152 static ssize_t channel_attr_store(struct kobject *kobj, in channel_attr_store()
245 static void most_channel_release(struct kobject *kobj) in most_channel_release()
535 create_most_c_obj(const char *name, struct kobject *parent) in create_most_c_obj()
612 static ssize_t instance_attr_show(struct kobject *kobj, in instance_attr_show()
635 static ssize_t instance_attr_store(struct kobject *kobj, in instance_attr_store()
663 static void most_inst_release(struct kobject *kobj) in most_inst_release()
778 struct kobject kobj;
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
Dlproc_lmv.c45 static ssize_t numobd_show(struct kobject *kobj, struct attribute *attr, in numobd_show()
80 static ssize_t placement_show(struct kobject *kobj, struct attribute *attr, in placement_show()
93 static ssize_t placement_store(struct kobject *kobj, struct attribute *attr, in placement_store()
124 static ssize_t activeobd_show(struct kobject *kobj, struct attribute *attr, in activeobd_show()
/linux-4.4.14/drivers/pci/
Dpci-sysfs.c629 static ssize_t pci_read_config(struct file *filp, struct kobject *kobj, in pci_read_config()
706 static ssize_t pci_write_config(struct file *filp, struct kobject *kobj, in pci_write_config()
768 static ssize_t read_vpd_attr(struct file *filp, struct kobject *kobj, in read_vpd_attr()
783 static ssize_t write_vpd_attr(struct file *filp, struct kobject *kobj, in write_vpd_attr()
811 static ssize_t pci_read_legacy_io(struct file *filp, struct kobject *kobj, in pci_read_legacy_io()
837 static ssize_t pci_write_legacy_io(struct file *filp, struct kobject *kobj, in pci_write_legacy_io()
862 static int pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, in pci_mmap_legacy_mem()
883 static int pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, in pci_mmap_legacy_io()
1000 static int pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, in pci_mmap_resource()
1039 static int pci_mmap_resource_uc(struct file *filp, struct kobject *kobj, in pci_mmap_resource_uc()
[all …]
Dslot.c19 static ssize_t pci_slot_attr_show(struct kobject *kobj, in pci_slot_attr_show()
27 static ssize_t pci_slot_attr_store(struct kobject *kobj, in pci_slot_attr_store()
102 static void pci_slot_release(struct kobject *kobj) in pci_slot_release()
160 struct kobject *dup_slot; in make_slot_name()
368 struct kobject *kobj = NULL; in pci_hp_create_module_link()
Dpci-label.c74 static umode_t smbios_instance_string_exist(struct kobject *kobj, in smbios_instance_string_exist()
219 static umode_t acpi_index_string_exist(struct kobject *kobj, in acpi_index_string_exist()
/linux-4.4.14/arch/ia64/kernel/
Dtopology.c129 struct kobject kobj;
135 struct kobject kobj;
276 static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf) in ia64_cache_show()
304 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_exit()
346 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_init()
414 sizeof(struct kobject)); in cache_remove_dev()
/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_module.c58 struct kobject *ttm_get_kobj(void) in ttm_get_kobj()
60 struct kobject *kobj = &ttm_drm_class_device.kobj; in ttm_get_kobj()
Dttm_memory.c43 struct kobject kobj;
74 static void ttm_mem_zone_kobj_release(struct kobject *kobj) in ttm_mem_zone_kobj_release()
84 static ssize_t ttm_mem_zone_show(struct kobject *kobj, in ttm_mem_zone_show()
111 static ssize_t ttm_mem_zone_store(struct kobject *kobj, in ttm_mem_zone_store()
169 static void ttm_mem_global_kobj_release(struct kobject *kobj) in ttm_mem_global_kobj_release()
Dttm_page_alloc.c111 struct kobject kobj;
146 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release()
153 static ssize_t ttm_pool_store(struct kobject *kobj, in ttm_pool_store()
187 static ssize_t ttm_pool_show(struct kobject *kobj, in ttm_pool_show()
/linux-4.4.14/drivers/platform/chrome/
Dcros_ec_vbc.c27 static ssize_t vboot_context_read(struct file *filp, struct kobject *kobj, in vboot_context_read()
68 static ssize_t vboot_context_write(struct file *filp, struct kobject *kobj, in vboot_context_write()
110 static umode_t cros_ec_vbc_is_visible(struct kobject *kobj, in cros_ec_vbc_is_visible()
/linux-4.4.14/mm/
Dhuge_memory.c240 static ssize_t double_flag_show(struct kobject *kobj, in double_flag_show()
253 static ssize_t double_flag_store(struct kobject *kobj, in double_flag_store()
277 static ssize_t enabled_show(struct kobject *kobj, in enabled_show()
284 static ssize_t enabled_store(struct kobject *kobj, in enabled_store()
310 static ssize_t single_flag_show(struct kobject *kobj, in single_flag_show()
318 static ssize_t single_flag_store(struct kobject *kobj, in single_flag_store()
345 static ssize_t defrag_show(struct kobject *kobj, in defrag_show()
352 static ssize_t defrag_store(struct kobject *kobj, in defrag_store()
363 static ssize_t use_zero_page_show(struct kobject *kobj, in use_zero_page_show()
369 static ssize_t use_zero_page_store(struct kobject *kobj, in use_zero_page_store()
[all …]
Dksm.c2105 static ssize_t sleep_millisecs_show(struct kobject *kobj, in sleep_millisecs_show()
2111 static ssize_t sleep_millisecs_store(struct kobject *kobj, in sleep_millisecs_store()
2128 static ssize_t pages_to_scan_show(struct kobject *kobj, in pages_to_scan_show()
2134 static ssize_t pages_to_scan_store(struct kobject *kobj, in pages_to_scan_store()
2151 static ssize_t run_show(struct kobject *kobj, struct kobj_attribute *attr, in run_show()
2157 static ssize_t run_store(struct kobject *kobj, struct kobj_attribute *attr, in run_store()
2200 static ssize_t merge_across_nodes_show(struct kobject *kobj, in merge_across_nodes_show()
2206 static ssize_t merge_across_nodes_store(struct kobject *kobj, in merge_across_nodes_store()
2257 static ssize_t pages_shared_show(struct kobject *kobj, in pages_shared_show()
2264 static ssize_t pages_sharing_show(struct kobject *kobj, in pages_sharing_show()
[all …]
Dpage_idle.c115 static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, in page_idle_bitmap_read()
160 static ssize_t page_idle_bitmap_write(struct file *file, struct kobject *kobj, in page_idle_bitmap_write()
Dhugetlb.c2226 static struct kobject *hugepages_kobj;
2227 static struct kobject *hstate_kobjs[HUGE_MAX_HSTATE];
2229 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp);
2231 static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp) in kobj_to_hstate()
2245 static ssize_t nr_hugepages_show_common(struct kobject *kobj, in nr_hugepages_show_common()
2304 struct kobject *kobj, const char *buf, in nr_hugepages_store_common()
2320 static ssize_t nr_hugepages_show(struct kobject *kobj, in nr_hugepages_show()
2326 static ssize_t nr_hugepages_store(struct kobject *kobj, in nr_hugepages_store()
2339 static ssize_t nr_hugepages_mempolicy_show(struct kobject *kobj, in nr_hugepages_mempolicy_show()
2345 static ssize_t nr_hugepages_mempolicy_store(struct kobject *kobj, in nr_hugepages_mempolicy_store()
[all …]
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmlx4_ib.h500 struct kobject *device_parent[MLX4_MFUNC_MAX];
505 struct kobject *kobj;
524 struct kobject *cur_port;
525 struct kobject *admin_alias_parent;
526 struct kobject *gids_parent;
527 struct kobject *pkeys_parent;
528 struct kobject *mcgs_parent;
564 struct kobject *iov_parent;
565 struct kobject *ports_parent;
566 struct kobject *dev_ports_parent[MLX4_MFUNC_MAX];
Dsysfs.c163 char *_name, struct kobject *_kobj, in create_sysfs_entry()
368 struct kobject kobj;
379 static void mlx4_port_release(struct kobject *kobj) in mlx4_port_release()
401 static ssize_t port_attr_show(struct kobject *kobj, in port_attr_show()
413 static ssize_t port_attr_store(struct kobject *kobj, in port_attr_store()
712 struct kobject *p, *t; in register_one_pkey_tree()
787 struct kobject *p, *t; in unregister_pkey_tree()
/linux-4.4.14/drivers/acpi/
Dsysfs.c313 static struct kobject *tables_kobj;
314 static struct kobject *dynamic_tables_kobj;
315 static struct kobject *hotplug_kobj;
324 static ssize_t acpi_table_show(struct file *filp, struct kobject *kobj, in acpi_table_show()
578 static ssize_t counter_show(struct kobject *kobj, in counter_show()
622 static ssize_t counter_set(struct kobject *kobj, in counter_set()
789 static ssize_t hotplug_enabled_show(struct kobject *kobj, in hotplug_enabled_show()
797 static ssize_t hotplug_enabled_store(struct kobject *kobj, in hotplug_enabled_store()
845 static ssize_t force_remove_show(struct kobject *kobj, in force_remove_show()
851 static ssize_t force_remove_store(struct kobject *kobj, in force_remove_store()
Dbgrt.c17 static struct kobject *bgrt_kobj;
54 static ssize_t image_read(struct file *file, struct kobject *kobj, in image_read()
/linux-4.4.14/net/netfilter/
Dxt_IDLETIMER.c46 ssize_t (*show)(struct kobject *kobj,
55 struct kobject *kobj;
64 static struct kobject *idletimer_tg_kobj;
81 static ssize_t idletimer_tg_show(struct kobject *kobj, struct attribute *attr, in idletimer_tg_show()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_sysfs.c211 static ssize_t read_cc_table_bin(struct file *filp, struct kobject *kobj, in read_cc_table_bin()
241 static void qib_port_release(struct kobject *kobj) in qib_port_release()
261 static ssize_t read_cc_setting_bin(struct file *filp, struct kobject *kobj, in read_cc_setting_bin()
296 static ssize_t qib_portattr_show(struct kobject *kobj, in qib_portattr_show()
307 static ssize_t qib_portattr_store(struct kobject *kobj, in qib_portattr_store()
380 static ssize_t sl2vl_attr_show(struct kobject *kobj, struct attribute *attr, in sl2vl_attr_show()
452 static ssize_t diagc_attr_show(struct kobject *kobj, struct attribute *attr, in diagc_attr_show()
464 static ssize_t diagc_attr_store(struct kobject *kobj, struct attribute *attr, in diagc_attr_store()
679 struct kobject *kobj) in qib_create_port_files()
Dqib.h541 struct kobject pport_kobj;
542 struct kobject pport_cc_kobj;
543 struct kobject sl2vl_kobj;
544 struct kobject diagc_kobj;
1423 struct kobject *kobj);
/linux-4.4.14/drivers/of/
Dof_private.h39 static inline struct device_node *kobj_to_device_node(struct kobject *kobj) in kobj_to_device_node()
47 extern void of_node_release(struct kobject *kobj);
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
Dlproc_mdc.c43 static ssize_t max_rpcs_in_flight_show(struct kobject *kobj, in max_rpcs_in_flight_show()
59 static ssize_t max_rpcs_in_flight_store(struct kobject *kobj, in max_rpcs_in_flight_store()
175 static ssize_t max_pages_per_rpc_show(struct kobject *kobj, in max_pages_per_rpc_show()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c268 static ssize_t qlcnic_sysfs_read_crb(struct file *filp, struct kobject *kobj, in qlcnic_sysfs_read_crb()
285 static ssize_t qlcnic_sysfs_write_crb(struct file *filp, struct kobject *kobj, in qlcnic_sysfs_write_crb()
314 static ssize_t qlcnic_sysfs_read_mem(struct file *filp, struct kobject *kobj, in qlcnic_sysfs_read_mem()
336 static ssize_t qlcnic_sysfs_write_mem(struct file *filp, struct kobject *kobj, in qlcnic_sysfs_write_mem()
400 struct kobject *kobj, in qlcnic_sysfs_write_pm_config()
450 struct kobject *kobj, in qlcnic_sysfs_read_pm_config()
543 struct kobject *kobj, in qlcnic_sysfs_write_esw_config()
627 struct kobject *kobj, in qlcnic_sysfs_read_esw_config()
679 struct kobject *kobj, in qlcnic_sysfs_write_npar_config()
726 struct kobject *kobj, in qlcnic_sysfs_read_npar_config()
[all …]
/linux-4.4.14/drivers/cpufreq/
Dcpufreq_governor.h77 (struct kobject *kobj, struct attribute *attr, char *buf) \
93 (struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) \
257 (struct kobject *kobj, struct attribute *attr, char *buf) \
Dintel_pstate.c371 (struct kobject *kobj, struct attribute *attr, char *buf) \
376 static ssize_t show_turbo_pct(struct kobject *kobj, in show_turbo_pct()
392 static ssize_t show_num_pstates(struct kobject *kobj, in show_num_pstates()
403 static ssize_t show_no_turbo(struct kobject *kobj, in show_no_turbo()
417 static ssize_t store_no_turbo(struct kobject *a, struct attribute *b, in store_no_turbo()
441 static ssize_t store_max_perf_pct(struct kobject *a, struct attribute *b, in store_max_perf_pct()
466 static ssize_t store_min_perf_pct(struct kobject *a, struct attribute *b, in store_min_perf_pct()
515 struct kobject *intel_pstate_kobject; in intel_pstate_sysfs_expose_params()
/linux-4.4.14/arch/x86/include/asm/
Damd_nb.h37 struct kobject kobj;
42 struct kobject *kobj;
/linux-4.4.14/fs/ocfs2/
Dstackglue.c482 static ssize_t ocfs2_max_locking_protocol_show(struct kobject *kobj, in ocfs2_max_locking_protocol_show()
502 static ssize_t ocfs2_loaded_cluster_plugins_show(struct kobject *kobj, in ocfs2_loaded_cluster_plugins_show()
534 static ssize_t ocfs2_active_cluster_plugin_show(struct kobject *kobj, in ocfs2_active_cluster_plugin_show()
556 static ssize_t ocfs2_cluster_stack_show(struct kobject *kobj, in ocfs2_cluster_stack_show()
568 static ssize_t ocfs2_cluster_stack_store(struct kobject *kobj, in ocfs2_cluster_stack_store()
608 static ssize_t ocfs2_dlm_recover_show(struct kobject *kobj, in ocfs2_dlm_recover_show()
/linux-4.4.14/drivers/misc/cxl/
Dsysfs.c385 static ssize_t afu_eb_read(struct file *filp, struct kobject *kobj, in afu_eb_read()
430 struct kobject kobj;
441 static ssize_t vendor_show(struct kobject *kobj, in vendor_show()
449 static ssize_t device_show(struct kobject *kobj, in device_show()
457 static ssize_t class_show(struct kobject *kobj, in class_show()
465 static ssize_t afu_read_config(struct file *filp, struct kobject *kobj, in afu_read_config()
497 static void release_afu_config_record(struct kobject *kobj) in release_afu_config_record()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dsysfs.c64 static ssize_t read_cc_table_bin(struct file *filp, struct kobject *kobj, in read_cc_table_bin()
97 static void port_release(struct kobject *kobj) in port_release()
117 static ssize_t read_cc_setting_bin(struct file *filp, struct kobject *kobj, in read_cc_setting_bin()
236 static ssize_t sc2vl_attr_show(struct kobject *kobj, struct attribute *attr, in sc2vl_attr_show()
342 static ssize_t sl2sc_attr_show(struct kobject *kobj, struct attribute *attr, in sl2sc_attr_show()
416 static ssize_t vl2mtu_attr_show(struct kobject *kobj, struct attribute *attr, in vl2mtu_attr_show()
603 struct kobject *kobj) in hfi1_create_port_files()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_internal.h228 static ssize_t var##_show(struct kobject *kobj, \
245 static ssize_t var##_store(struct kobject *kobj, \
269 static ssize_t var##_show(struct kobject *kobj, \
281 static ssize_t var##_store(struct kobject *kobj, \
Dldlm_resource.c155 static ssize_t resource_count_show(struct kobject *kobj, struct attribute *attr, in resource_count_show()
171 static ssize_t lock_count_show(struct kobject *kobj, struct attribute *attr, in lock_count_show()
184 static ssize_t lock_unused_count_show(struct kobject *kobj, in lock_unused_count_show()
195 static ssize_t lru_size_show(struct kobject *kobj, struct attribute *attr, in lru_size_show()
207 static ssize_t lru_size_store(struct kobject *kobj, struct attribute *attr, in lru_size_store()
292 static ssize_t lru_max_age_show(struct kobject *kobj, struct attribute *attr, in lru_max_age_show()
301 static ssize_t lru_max_age_store(struct kobject *kobj, struct attribute *attr, in lru_max_age_store()
319 static ssize_t early_lock_cancel_show(struct kobject *kobj, in early_lock_cancel_show()
329 static ssize_t early_lock_cancel_store(struct kobject *kobj, in early_lock_cancel_store()
362 static void ldlm_ns_release(struct kobject *kobj) in ldlm_ns_release()
/linux-4.4.14/block/
Dblk-mq-sysfs.c16 static void blk_mq_sysfs_release(struct kobject *kobj) in blk_mq_sysfs_release()
32 static ssize_t blk_mq_sysfs_show(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_show()
55 static ssize_t blk_mq_sysfs_store(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_store()
78 static ssize_t blk_mq_hw_sysfs_show(struct kobject *kobj, in blk_mq_hw_sysfs_show()
101 static ssize_t blk_mq_hw_sysfs_store(struct kobject *kobj, in blk_mq_hw_sysfs_store()
Dblk-mq.h25 struct kobject kobj;
Dgenhd.c27 struct kobject *block_depr;
477 struct kobject *(*probe)(dev_t, int *, void *), in blk_register_region()
492 static struct kobject *exact_match(dev_t devt, int *partno, void *data) in exact_match()
688 struct kobject *kobj; in get_gendisk()
894 static struct kobject *base_probe(dev_t devt, int *partno, void *data) in base_probe()
1305 struct kobject *get_disk(struct gendisk *disk) in get_disk()
1308 struct kobject *kobj; in get_disk()
/linux-4.4.14/arch/powerpc/sysdev/
Dmv64x60_pci.c28 static ssize_t mv64x60_hs_reg_read(struct file *filp, struct kobject *kobj, in mv64x60_hs_reg_read()
49 static ssize_t mv64x60_hs_reg_write(struct file *filp, struct kobject *kobj, in mv64x60_hs_reg_write()
Dppc4xx_cpm.c138 static ssize_t cpm_idle_show(struct kobject *kobj, in cpm_idle_show()
156 static ssize_t cpm_idle_store(struct kobject *kobj, in cpm_idle_store()
/linux-4.4.14/drivers/dma/ioat/
Dsysfs.c54 ioat_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in ioat_attr_show()
78 struct kobject *parent = &c->dev->device.kobj; in ioat_kobject_add()
/linux-4.4.14/drivers/scsi/
Discsi_boot_sysfs.c40 static ssize_t iscsi_boot_show_attribute(struct kobject *kobj, in iscsi_boot_show_attribute()
62 static void iscsi_boot_kobj_release(struct kobject *kobj) in iscsi_boot_kobj_release()
115 static umode_t iscsi_boot_tgt_attr_is_visible(struct kobject *kobj, in iscsi_boot_tgt_attr_is_visible()
196 static umode_t iscsi_boot_eth_attr_is_visible(struct kobject *kobj, in iscsi_boot_eth_attr_is_visible()
268 static umode_t iscsi_boot_ini_attr_is_visible(struct kobject *kobj, in iscsi_boot_ini_attr_is_visible()
/linux-4.4.14/samples/
DMakefile3 obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
DKconfig15 tristate "Build kobject examples -- loadable modules only"
19 different kobject sample modules showing how to use kobjects,
/linux-4.4.14/arch/x86/platform/olpc/
Dolpc-xo15-sci.c56 lid_wake_on_close_show(struct kobject *s, struct kobj_attribute *attr, char *buf) in lid_wake_on_close_show()
61 static ssize_t lid_wake_on_close_store(struct kobject *s, in lid_wake_on_close_store()
/linux-4.4.14/drivers/i2c/
Di2c-slave-eeprom.c77 static ssize_t i2c_slave_eeprom_bin_read(struct file *filp, struct kobject *kobj, in i2c_slave_eeprom_bin_read()
92 static ssize_t i2c_slave_eeprom_bin_write(struct file *filp, struct kobject *kobj, in i2c_slave_eeprom_bin_write()
/linux-4.4.14/kernel/livepatch/
Dcore.c62 static struct kobject *klp_root_kobj;
599 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store()
642 static ssize_t enabled_show(struct kobject *kobj, in enabled_show()
657 static void klp_kobj_release_patch(struct kobject *kobj) in klp_kobj_release_patch()
671 static void klp_kobj_release_object(struct kobject *kobj) in klp_kobj_release_object()
680 static void klp_kobj_release_func(struct kobject *kobj) in klp_kobj_release_func()
/linux-4.4.14/drivers/platform/mips/
Dcpu_hwmon.c106 static int create_sysfs_cputemp_files(struct kobject *kobj) in create_sysfs_cputemp_files()
130 static void remove_sysfs_cputemp_files(struct kobject *kobj) in remove_sysfs_cputemp_files()
/linux-4.4.14/fs/ocfs2/cluster/
Dmasklog.c141 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, in mlog_show()
149 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, in mlog_store()
Dsys.c38 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, in version_show()
/linux-4.4.14/fs/ext4/
Dsysfs.c251 static ssize_t ext4_attr_show(struct kobject *kobj, in ext4_attr_show()
290 static ssize_t ext4_attr_store(struct kobject *kobj, in ext4_attr_store()
320 static void ext4_sb_release(struct kobject *kobj) in ext4_sb_release()
351 static struct kobject ext4_feat = {
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_main.c60 static struct esas2r_adapter *esas2r_adapter_from_kobj(struct kobject *kobj) in esas2r_adapter_from_kobj()
68 static ssize_t read_fw(struct file *file, struct kobject *kobj, in read_fw()
77 static ssize_t write_fw(struct file *file, struct kobject *kobj, in write_fw()
86 static ssize_t read_fs(struct file *file, struct kobject *kobj, in read_fs()
95 static ssize_t write_fs(struct file *file, struct kobject *kobj, in write_fs()
111 static ssize_t read_vda(struct file *file, struct kobject *kobj, in read_vda()
120 static ssize_t write_vda(struct file *file, struct kobject *kobj, in write_vda()
129 static ssize_t read_live_nvram(struct file *file, struct kobject *kobj, in read_live_nvram()
140 static ssize_t write_live_nvram(struct file *file, struct kobject *kobj, in write_live_nvram()
160 static ssize_t read_default_nvram(struct file *file, struct kobject *kobj, in read_default_nvram()
[all …]
/linux-4.4.14/drivers/misc/
Dds1682.c141 static ssize_t ds1682_eeprom_read(struct file *filp, struct kobject *kobj, in ds1682_eeprom_read()
159 static ssize_t ds1682_eeprom_write(struct file *filp, struct kobject *kobj, in ds1682_eeprom_write()
/linux-4.4.14/arch/alpha/kernel/
Dpci-sysfs.c63 static int pci_mmap_resource(struct kobject *kobj, in pci_mmap_resource()
93 static int pci_mmap_resource_sparse(struct file *filp, struct kobject *kobj, in pci_mmap_resource_sparse()
100 static int pci_mmap_resource_dense(struct file *filp, struct kobject *kobj, in pci_mmap_resource_dense()
/linux-4.4.14/drivers/sfi/
Dsfi_core.c386 static struct kobject *sfi_kobj;
387 static struct kobject *tables_kobj;
389 static ssize_t sfi_table_show(struct file *filp, struct kobject *kobj, in sfi_table_show()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_sysfs.c251 static ssize_t edid_show(struct file *filp, struct kobject *kobj, in edid_show()
422 static int kobj_connector_type(struct kobject *kobj) in kobj_connector_type()
430 static umode_t connector_is_dvii(struct kobject *kobj, in connector_is_dvii()
437 static umode_t connector_is_tv(struct kobject *kobj, in connector_is_tv()
/linux-4.4.14/drivers/uio/
Duio.c44 struct kobject kobj;
95 static void map_release(struct kobject *kobj) in map_release()
101 static ssize_t map_type_show(struct kobject *kobj, struct attribute *attr, in map_type_show()
127 struct kobject kobj;
183 static void portio_release(struct kobject *kobj) in portio_release()
189 static ssize_t portio_type_show(struct kobject *kobj, struct attribute *attr, in portio_type_show()
/linux-4.4.14/drivers/infiniband/core/
Dsysfs.c44 struct kobject kobj;
70 static ssize_t port_attr_show(struct kobject *kobj, in port_attr_show()
431 static void ib_port_release(struct kobject *kobj) in ib_port_release()
505 u8, struct kobject *)) in add_port() argument
798 struct kobject *p, *t; in free_port_list_attributes()
814 u8, struct kobject *)) in ib_device_register_sysfs() argument
875 struct kobject *kobj_dev = kobject_get(&device->dev.kobj); in ib_device_unregister_sysfs()
Dcore_priv.h43 u8, struct kobject *));
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dlproc_ptlrpc.c329 static ssize_t threads_min_show(struct kobject *kobj, struct attribute *attr, in threads_min_show()
338 static ssize_t threads_min_store(struct kobject *kobj, struct attribute *attr, in threads_min_store()
366 static ssize_t threads_started_show(struct kobject *kobj, in threads_started_show()
383 static ssize_t threads_max_show(struct kobject *kobj, struct attribute *attr, in threads_max_show()
392 static ssize_t threads_max_store(struct kobject *kobj, struct attribute *attr, in threads_max_store()
996 static ssize_t high_priority_ratio_show(struct kobject *kobj, in high_priority_ratio_show()
1005 static ssize_t high_priority_ratio_store(struct kobject *kobj, in high_priority_ratio_store()
1038 static void ptlrpc_sysfs_svc_release(struct kobject *kobj) in ptlrpc_sysfs_svc_release()
/linux-4.4.14/net/core/
Dnet-sysfs.c631 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show()
643 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store()
842 static void rx_queue_release(struct kobject *kobj) in rx_queue_release()
867 static const void *rx_queue_namespace(struct kobject *kobj) in rx_queue_namespace()
889 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject()
962 static ssize_t netdev_queue_attr_show(struct kobject *kobj, in netdev_queue_attr_show()
974 static ssize_t netdev_queue_attr_store(struct kobject *kobj, in netdev_queue_attr_store()
1251 static void netdev_queue_release(struct kobject *kobj) in netdev_queue_release()
1259 static const void *netdev_queue_namespace(struct kobject *kobj) in netdev_queue_namespace()
1281 struct kobject *kobj = &queue->kobj; in netdev_queue_add_kobject()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_status.c360 static ssize_t uuid_show(struct kobject *kobj, struct attribute *attr, in uuid_show()
370 static ssize_t blocksize_show(struct kobject *kobj, struct attribute *attr, in blocksize_show()
386 static ssize_t kbytestotal_show(struct kobject *kobj, struct attribute *attr, in kbytestotal_show()
409 static ssize_t kbytesfree_show(struct kobject *kobj, struct attribute *attr, in kbytesfree_show()
432 static ssize_t kbytesavail_show(struct kobject *kobj, struct attribute *attr, in kbytesavail_show()
455 static ssize_t filestotal_show(struct kobject *kobj, struct attribute *attr, in filestotal_show()
471 static ssize_t filesfree_show(struct kobject *kobj, struct attribute *attr, in filesfree_show()
895 static void obd_sysfs_release(struct kobject *kobj) in obd_sysfs_release()
1500 static ssize_t lustre_attr_show(struct kobject *kobj, in lustre_attr_show()
1508 static ssize_t lustre_attr_store(struct kobject *kobj, struct attribute *attr, in lustre_attr_store()
/linux-4.4.14/arch/mips/alchemy/devboards/
Dpm.c117 static ssize_t db1x_pmattr_show(struct kobject *kobj, in db1x_pmattr_show()
147 static ssize_t db1x_pmattr_store(struct kobject *kobj, in db1x_pmattr_store()
/linux-4.4.14/arch/arm/common/
DbL_switcher.c674 static ssize_t bL_switcher_active_show(struct kobject *kobj, in bL_switcher_active_show()
680 static ssize_t bL_switcher_active_store(struct kobject *kobj, in bL_switcher_active_store()
700 static ssize_t bL_switcher_trace_trigger_store(struct kobject *kobj, in bL_switcher_trace_trigger_store()
724 static struct kobject *bL_switcher_kobj;
/linux-4.4.14/include/acpi/
Dacpi_bus.h116 struct kobject kobj;
124 struct kobject *kobj) in to_acpi_hotplug_profile()
389 struct kobject kobj;
467 extern struct kobject *acpi_kobj;
/linux-4.4.14/Documentation/device-mapper/
Ddm-uevent.txt2 and send kobject uevents (uevents). Previously device-mapper events were only
14 void dm_send_uevents(struct list_head *events, struct kobject *kobj)
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_attr.c64 struct kobject *kobj, in arcmsr_sysfs_iop_message_read()
111 struct kobject *kobj, in arcmsr_sysfs_iop_message_write()
159 struct kobject *kobj, in arcmsr_sysfs_iop_message_clear()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_attr.c20 qla2x00_sysfs_read_fw_dump(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_read_fw_dump()
53 qla2x00_sysfs_write_fw_dump(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_write_fw_dump()
150 qla2x00_sysfs_read_fw_dump_template(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_read_fw_dump_template()
168 qla2x00_sysfs_write_fw_dump_template(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_write_fw_dump_template()
236 qla2x00_sysfs_read_nvram(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_read_nvram()
255 qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_write_nvram()
323 qla2x00_sysfs_read_optrom(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_read_optrom()
344 qla2x00_sysfs_write_optrom(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_write_optrom()
377 qla2x00_sysfs_write_optrom_ctl(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_write_optrom_ctl()
558 qla2x00_sysfs_read_vpd(struct file *filp, struct kobject *kobj, in qla2x00_sysfs_read_vpd()
[all …]
/linux-4.4.14/arch/x86/include/asm/uv/
Dbios.h112 extern struct kobject *sgi_uv_kobj; /* /sys/firmware/sgi_uv */
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_ib.h84 struct kobject *qpn_kobj;
Dusnic_ib_qp_grp.h65 struct kobject kobj;
/linux-4.4.14/drivers/staging/iio/accel/
Dadis16220_core.c159 static ssize_t adis16220_accel_bin_read(struct file *filp, struct kobject *kobj, in adis16220_accel_bin_read()
181 static ssize_t adis16220_adc1_bin_read(struct file *filp, struct kobject *kobj, in adis16220_adc1_bin_read()
202 static ssize_t adis16220_adc2_bin_read(struct file *filp, struct kobject *kobj, in adis16220_adc2_bin_read()
/linux-4.4.14/drivers/power/
Dds2781_battery.c634 struct kobject *kobj, in ds2781_read_param_eeprom_bin()
647 struct kobject *kobj, in ds2781_write_param_eeprom_bin()
679 struct kobject *kobj, in ds2781_read_user_eeprom_bin()
693 struct kobject *kobj, in ds2781_write_user_eeprom_bin()
Dds2780_battery.c632 struct kobject *kobj, in ds2780_read_param_eeprom_bin()
645 struct kobject *kobj, in ds2780_write_param_eeprom_bin()
677 struct kobject *kobj, in ds2780_read_user_eeprom_bin()
690 struct kobject *kobj, in ds2780_write_user_eeprom_bin()
/linux-4.4.14/drivers/fmc/
Dfmc-core.c81 static ssize_t fmc_read_eeprom(struct file *file, struct kobject *kobj, in fmc_read_eeprom()
102 static ssize_t fmc_write_eeprom(struct file *file, struct kobject *kobj, in fmc_write_eeprom()
/linux-4.4.14/drivers/rtc/
Drtc-rp5c01.c163 static ssize_t rp5c01_nvram_read(struct file *filp, struct kobject *kobj, in rp5c01_nvram_read()
193 static ssize_t rp5c01_nvram_write(struct file *filp, struct kobject *kobj, in rp5c01_nvram_write()
Drtc-ds1742.c127 static ssize_t ds1742_nvram_read(struct file *filp, struct kobject *kobj, in ds1742_nvram_read()
142 static ssize_t ds1742_nvram_write(struct file *filp, struct kobject *kobj, in ds1742_nvram_write()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlproc_lov.c173 static ssize_t numobd_show(struct kobject *kobj, struct attribute *attr, in numobd_show()
185 static ssize_t activeobd_show(struct kobject *kobj, struct attribute *attr, in activeobd_show()
/linux-4.4.14/drivers/net/phy/
Dspi_ks8995.c212 static ssize_t ks8995_registers_read(struct file *filp, struct kobject *kobj, in ks8995_registers_read()
224 static ssize_t ks8995_registers_write(struct file *filp, struct kobject *kobj, in ks8995_registers_write()
/linux-4.4.14/drivers/firmware/google/
Dgsmi.c469 static ssize_t eventlog_write(struct file *filp, struct kobject *kobj, in eventlog_write()
516 static ssize_t gsmi_clear_eventlog_store(struct kobject *kobj, in gsmi_clear_eventlog_store()
563 static ssize_t gsmi_clear_config_store(struct kobject *kobj, in gsmi_clear_config_store()
764 static struct kobject *gsmi_kobj;
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_sysfs.c162 i915_l3_read(struct file *filp, struct kobject *kobj, in i915_l3_read()
198 i915_l3_write(struct file *filp, struct kobject *kobj, in i915_l3_write()
518 static ssize_t error_state_read(struct file *filp, struct kobject *kobj, in error_state_read()
554 static ssize_t error_state_write(struct file *file, struct kobject *kobj, in error_state_write()
/linux-4.4.14/drivers/staging/most/hdm-usb/
Dhdm_usb.c89 struct kobject kobj;
117 struct kobject *parent;
999 static ssize_t dci_attr_show(struct kobject *kobj, struct attribute *attr, in dci_attr_show()
1018 static ssize_t dci_attr_store(struct kobject *kobj, in dci_attr_store()
1043 static void most_dci_release(struct kobject *kobj) in most_dci_release()
1178 most_dci_obj *create_most_dci_obj(struct kobject *parent) in create_most_dci_obj()

123