/linux-3.4.99/include/linux/ |
D | sysfs.h | 22 struct kobject; 58 umode_t (*is_visible)(struct kobject *, 92 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, 94 ssize_t (*write)(struct file *,struct kobject *, struct bin_attribute *, 96 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr, 113 ssize_t (*show)(struct kobject *, struct attribute *,char *); 114 ssize_t (*store)(struct kobject *,struct attribute *,const char *, size_t); 115 const void *(*namespace)(struct kobject *, const struct attribute *); 122 int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), 125 int __must_check sysfs_create_dir(struct kobject *kobj); [all …]
|
D | kobject.h | 60 struct kobject { struct 63 struct kobject *parent; argument 76 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument 77 extern int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, 80 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name() 85 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype); 87 int kobject_add(struct kobject *kobj, struct kobject *parent, 90 int kobject_init_and_add(struct kobject *kobj, 91 struct kobj_type *ktype, struct kobject *parent, 94 extern void kobject_del(struct kobject *kobj); [all …]
|
D | kobject_ns.h | 21 struct kobject; 50 const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent); 51 const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj);
|
/linux-3.4.99/Documentation/ |
D | kobject.txt | 11 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-3.4.99/lib/ |
D | kobject.c | 30 static int populate_dir(struct kobject *kobj) in populate_dir() 47 static int create_dir(struct kobject *kobj) in create_dir() 61 static int get_kobj_path_length(struct kobject *kobj) in get_kobj_path_length() 64 struct kobject *parent = kobj; in get_kobj_path_length() 79 static void fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path() 81 struct kobject *parent; in fill_kobj_path() 104 char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) in kobject_get_path() 122 static void kobj_kset_join(struct kobject *kobj) in kobj_kset_join() 134 static void kobj_kset_leave(struct kobject *kobj) in kobj_kset_leave() 145 static void kobject_init_internal(struct kobject *kobj) in kobject_init_internal() [all …]
|
/linux-3.4.99/kernel/ |
D | ksysfs.c | 31 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show() 39 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show() 44 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store() 60 static ssize_t profiling_show(struct kobject *kobj, in profiling_show() 65 static ssize_t profiling_store(struct kobject *kobj, in profiling_store() 91 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show() 98 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show() 105 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show() 110 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store() 125 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show() [all …]
|
/linux-3.4.99/fs/sysfs/ |
D | symlink.c | 24 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link() 104 int sysfs_create_link(struct kobject *kobj, struct kobject *target, in sysfs_create_link() 119 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, in sysfs_create_link_nowarn() 134 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link() 151 void sysfs_remove_link(struct kobject * kobj, const char * name) in sysfs_remove_link() 172 int sysfs_rename_link(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link()
|
D | group.c | 19 static void remove_files(struct sysfs_dirent *dir_sd, struct kobject *kobj, in remove_files() 29 static int create_files(struct sysfs_dirent *dir_sd, struct kobject *kobj, in create_files() 59 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group() 101 int sysfs_create_group(struct kobject *kobj, in sysfs_create_group() 124 int sysfs_update_group(struct kobject *kobj, in sysfs_update_group() 132 void sysfs_remove_group(struct kobject * kobj, in sysfs_remove_group() 164 int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group() 193 void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
|
D | file.c | 70 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in fill_read_buffer() 194 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in flush_write_buffer() 329 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in sysfs_open_file() 462 void sysfs_notify(struct kobject *k, const char *dir, const char *attr) in sysfs_notify() 488 int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr, in sysfs_attr_ns() 571 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr) in sysfs_create_file() 579 int sysfs_create_files(struct kobject *kobj, const struct attribute **ptr) in sysfs_create_files() 598 int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group() 626 int sysfs_chmod_file(struct kobject *kobj, const struct attribute *attr, in sysfs_chmod_file() 664 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr) in sysfs_remove_file() [all …]
|
/linux-3.4.99/kernel/power/ |
D | main.c | 51 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() 238 struct kobject *power_kobj; 250 static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, in state_show() 272 static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr, in state_store() 336 static ssize_t wakeup_count_show(struct kobject *kobj, in wakeup_count_show() 345 static ssize_t wakeup_count_store(struct kobject *kobj, in wakeup_count_store() 364 static ssize_t pm_trace_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_trace_show() [all …]
|
/linux-3.4.99/net/batman-adv/ |
D | bat_sysfs.c | 31 static struct net_device *kobj_to_netdev(struct kobject *obj) in kobj_to_netdev() 37 static struct bat_priv *kobj_to_batpriv(struct kobject *obj) in kobj_to_batpriv() 67 ssize_t store_##_name(struct kobject *kobj, struct attribute *attr, \ 77 ssize_t show_##_name(struct kobject *kobj, struct attribute *attr, \ 94 ssize_t store_##_name(struct kobject *kobj, struct attribute *attr, \ 104 ssize_t show_##_name(struct kobject *kobj, struct attribute *attr, \ 223 static ssize_t show_vis_mode(struct kobject *kobj, struct attribute *attr, in show_vis_mode() 234 static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr, in store_vis_mode() 275 static ssize_t show_bat_algo(struct kobject *kobj, struct attribute *attr, in show_bat_algo() 288 static ssize_t show_gw_mode(struct kobject *kobj, struct attribute *attr, in show_gw_mode() [all …]
|
D | bat_sysfs.h | 31 ssize_t (*show)(struct kobject *kobj, struct attribute *attr, 33 ssize_t (*store)(struct kobject *kobj, struct attribute *attr, 39 int sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev); 40 void sysfs_del_hardif(struct kobject **hardif_obj);
|
/linux-3.4.99/drivers/edac/ |
D | mce_amd_inj.c | 23 ssize_t (*show) (struct kobject *kobj, struct edac_mce_attr *attr, char *buf); 24 ssize_t (*store)(struct kobject *kobj, struct edac_mce_attr *attr, 31 static struct kobject *mce_kobj; 39 static ssize_t edac_inject_##reg##_store(struct kobject *kobj, \ 60 static ssize_t edac_inject_##reg##_show(struct kobject *kobj, \ 79 static ssize_t edac_inject_bank_store(struct kobject *kobj, in edac_inject_bank_store() 105 static ssize_t edac_inject_bank_show(struct kobject *kobj, in edac_inject_bank_show()
|
D | edac_device_sysfs.c | 117 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() 335 static void edac_device_ctrl_instance_release(struct kobject *kobj) in edac_device_ctrl_instance_release() 356 static ssize_t edac_dev_instance_show(struct kobject *kobj, in edac_dev_instance_show() 368 static ssize_t edac_dev_instance_store(struct kobject *kobj, in edac_dev_instance_store() 424 static ssize_t block_ue_count_show(struct kobject *kobj, in block_ue_count_show() 432 static ssize_t block_ce_count_show(struct kobject *kobj, in block_ce_count_show() 441 static void edac_device_ctrl_block_release(struct kobject *kobj) in edac_device_ctrl_block_release() [all …]
|
/linux-3.4.99/samples/kobject/ |
D | kobject-example.c | 30 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() 50 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, in b_show() 62 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, in b_store() 102 static struct kobject *example_kobj;
|
/linux-3.4.99/drivers/pci/hotplug/ |
D | rpadlpar_sysfs.c | 32 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;
|
/linux-3.4.99/drivers/parisc/ |
D | pdc_stable.c | 106 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-3.4.99/drivers/md/ |
D | dm.h | 125 struct kobject kobj; 129 static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) in dm_get_completion_from_kobject() 136 struct kobject *dm_kobject(struct mapped_device *md); 137 struct mapped_device *dm_get_from_kobject(struct kobject *kobj); 142 void dm_kobject_release(struct kobject *kobj);
|
/linux-3.4.99/drivers/s390/char/ |
D | sclp_cpi_sys.c | 222 static ssize_t system_name_show(struct kobject *kobj, in system_name_show() 233 static ssize_t system_name_store(struct kobject *kobj, in system_name_store() 254 static ssize_t sysplex_name_show(struct kobject *kobj, in sysplex_name_show() 265 static ssize_t sysplex_name_store(struct kobject *kobj, in sysplex_name_store() 286 static ssize_t system_type_show(struct kobject *kobj, in system_type_show() 297 static ssize_t system_type_store(struct kobject *kobj, in system_type_store() 318 static ssize_t system_level_show(struct kobject *kobj, in system_level_show() 329 static ssize_t system_level_store(struct kobject *kobj, in system_level_store() 355 static ssize_t set_store(struct kobject *kobj, in set_store()
|
/linux-3.4.99/drivers/w1/slaves/ |
D | w1_ds2408.c | 75 struct file *filp, struct kobject *kobj, in w1_f29_read_state() 88 struct file *filp, struct kobject *kobj, in w1_f29_read_output() 102 struct file *filp, struct kobject *kobj, in w1_f29_read_activity() 116 struct file *filp, struct kobject *kobj, in w1_f29_read_cond_search_mask() 130 struct file *filp, struct kobject *kobj, in w1_f29_read_cond_search_polarity() 141 struct file *filp, struct kobject *kobj, in w1_f29_read_status_control() 155 struct file *filp, struct kobject *kobj, in w1_f29_write_output() 221 struct file *filp, struct kobject *kobj, in w1_f29_write_activity() 253 struct kobject *kobj, in w1_f29_write_status_control()
|
/linux-3.4.99/drivers/base/ |
D | core.c | 47 static struct kobject *dev_kobj; 48 struct kobject *sysfs_dev_char_kobj; 49 struct kobject *sysfs_dev_block_kobj; 90 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, in dev_attr_show() 106 static ssize_t dev_attr_store(struct kobject *kobj, struct attribute *attr, in dev_attr_store() 182 static void device_release(struct kobject *kobj) in device_release() 200 static const void *device_namespace(struct kobject *kobj) in device_namespace() 218 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) in dev_uevent_filter() 232 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) in dev_uevent_name() 243 static int dev_uevent(struct kset *kset, struct kobject *kobj, in dev_uevent() [all …]
|
/linux-3.4.99/arch/s390/kernel/ |
D | ipl.c | 187 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \ 197 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \ 204 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \ 220 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \ 226 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \ 273 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show() 326 static ssize_t ipl_vm_parm_show(struct kobject *kobj, in ipl_vm_parm_show() 393 static ssize_t sys_ipl_device_show(struct kobject *kobj, in sys_ipl_device_show() 412 static ssize_t ipl_parameter_read(struct file *filp, struct kobject *kobj, in ipl_parameter_read() 429 static ssize_t ipl_scp_data_read(struct file *filp, struct kobject *kobj, in ipl_scp_data_read() [all …]
|
/linux-3.4.99/arch/powerpc/kernel/ |
D | cacheinfo.c | 32 struct kobject *kobj; /* bare (not embedded) kobject for cache 42 struct kobject kobj; 124 static struct cache_index_dir *kobj_to_cache_index_dir(struct kobject *k) in kobj_to_cache_index_dir() 455 struct kobject *kobj = NULL; in cacheinfo_create_cache_dir() 482 static void cache_index_release(struct kobject *kobj) in cache_index_release() 494 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show() 503 static struct cache *index_kobj_to_cache(struct kobject *k) in index_kobj_to_cache() 512 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show() 529 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show() 545 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show() [all …]
|
/linux-3.4.99/arch/powerpc/platforms/pseries/ |
D | power.c | 31 static ssize_t auto_poweron_show(struct kobject *kobj, in auto_poweron_show() 37 static ssize_t auto_poweron_store(struct kobject *kobj, in auto_poweron_store() 56 struct kobject *power_kobj;
|
/linux-3.4.99/arch/x86/platform/uv/ |
D | uv_sysfs.c | 26 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()
|