/linux-master/drivers/platform/x86/intel/pmt/ |
H A D | class.c | 65 intel_pmt_read(struct file *filp, struct kobject *kobj, argument 92 intel_pmt_mmap(struct file *filp, struct kobject *kobj, argument 99 struct device *dev = kobj_to_dev(kobj); 269 entry->kobj = &dev->kobj; 272 ret = sysfs_create_group(entry->kobj, ns->attr_grp); 298 ret = sysfs_create_bin_file(&dev->kobj, &entry->pmt_bin_attr); 311 sysfs_remove_bin_file(entry->kobj, &entry->pmt_bin_attr); 314 sysfs_remove_group(entry->kobj, ns->attr_grp); 351 struct device *dev = kobj_to_dev(entry->kobj); [all...] |
/linux-master/drivers/pci/ |
H A D | pci-sysfs.c | 666 static ssize_t pci_read_config(struct file *filp, struct kobject *kobj, argument 670 struct pci_dev *dev = to_pci_dev(kobj_to_dev(kobj)); 741 static ssize_t pci_write_config(struct file *filp, struct kobject *kobj, argument 745 struct pci_dev *dev = to_pci_dev(kobj_to_dev(kobj)); 817 static umode_t pci_dev_config_attr_is_visible(struct kobject *kobj, argument 820 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); 840 struct kobject *kobj __always_unused, 851 * @kobj: kobject corresponding to file to read from 860 static ssize_t pci_read_legacy_io(struct file *filp, struct kobject *kobj, argument 864 struct pci_bus *bus = to_pci_bus(kobj_to_dev(kobj)); 885 pci_write_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 909 pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 929 pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 1034 pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine) argument 1058 pci_mmap_resource_uc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 1065 pci_mmap_resource_wc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 1072 pci_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count, bool write) argument 1115 pci_read_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 1122 pci_write_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 1265 pci_write_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 1291 pci_read_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 1325 pci_dev_rom_attr_is_visible(struct kobject *kobj, struct bin_attribute *a, int n) argument 1374 pci_dev_reset_attr_is_visible(struct kobject *kobj, struct attribute *a, int n) argument 1493 resource_resize_is_visible(struct kobject *kobj, struct attribute *a, int n) argument 1555 pci_dev_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument 1573 pci_dev_hp_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument 1585 pci_bridge_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument 1597 pcie_dev_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument [all...] |
/linux-master/drivers/staging/greybus/ |
H A D | audio_manager.h | 28 struct kobject kobj; member in struct:gb_audio_manager_module
|
/linux-master/drivers/platform/x86/dell/dell-wmi-sysman/ |
H A D | dell-wmi-sysman.h | 102 static int get_##type##_instance_id(struct kobject *kobj) \ 106 if (!(strcmp(kobj->name, wmi_priv.type##_data[i].attribute_name)))\ 113 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 116 int i = get_##type##_instance_id(kobj); \ 123 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 126 int i = get_##type##_instance_id(kobj); \ 133 static ssize_t curr_val##_store(struct kobject *kobj, \ 146 i = get_##type##_instance_id(kobj); \ 150 ret = set_attribute(kobj->name, buf_cp); \
|
H A D | sysman.c | 141 * @kobj: Kernel object for this attribute 145 static ssize_t reset_bios_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 162 * @kobj: Kernel object for this attribute 167 static ssize_t reset_bios_store(struct kobject *kobj, argument 188 * @kobj: Kernel object for this attribute 195 static ssize_t pending_reboot_show(struct kobject *kobj, struct kobj_attribute *attr, argument 213 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &reset_bios.attr); 217 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &pending_reboot.attr); 224 static ssize_t wmi_sysman_attr_show(struct kobject *kobj, struct attribute *attr, argument 232 ret = kattr->show(kobj, katt 236 wmi_sysman_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument 253 attr_name_release(struct kobject *kobj) argument [all...] |
/linux-master/drivers/s390/char/ |
H A D | sclp_sd.c | 80 * @kobj: Kobject 87 struct kobject kobj; member in struct:sclp_sd_file 93 #define to_sd_file(x) container_of(x, struct sclp_sd_file, kobj) 357 * @kobj: Kobject embedded in sclp_sd_file object 359 static void sclp_sd_file_release(struct kobject *kobj) argument 361 struct sclp_sd_file *sd_file = to_sd_file(kobj); 379 const char *name = kobject_name(&sd_file->kobj); 399 kobject_uevent(&sd_file->kobj, KOBJ_CHANGE); 418 * @kobj: Kobject of sclp_sd_file object 425 static ssize_t reload_store(struct kobject *kobj, struc argument 462 data_read(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buffer, loff_t off, size_t size) argument [all...] |
/linux-master/fs/ocfs2/ |
H A D | filecheck.c | 73 static ssize_t ocfs2_filecheck_attr_show(struct kobject *kobj, 76 static ssize_t ocfs2_filecheck_attr_store(struct kobject *kobj, 99 static void ocfs2_filecheck_release(struct kobject *kobj) argument 101 struct ocfs2_filecheck_sysfs_entry *entry = container_of(kobj, 108 ocfs2_filecheck_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 114 kobject_get(kobj); 116 ret = kattr->show(kobj, kattr, buf); 117 kobject_put(kobj); 122 ocfs2_filecheck_store(struct kobject *kobj, struct attribute *attr, argument 129 kobject_get(kobj); 298 ocfs2_filecheck_attr_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 446 ocfs2_filecheck_attr_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/drivers/acpi/ |
H A D | fan_attr.c | 83 status = sysfs_create_file(&device->dev.kobj, &fan->fine_grain_control.attr); 93 status = sysfs_create_file(&device->dev.kobj, &fan->fst_speed.attr); 106 status = sysfs_create_file(&device->dev.kobj, &fps->dev_attr.attr); 111 sysfs_remove_file(&device->dev.kobj, &fan->fps[j].dev_attr.attr); 119 sysfs_remove_file(&device->dev.kobj, &fan->fst_speed.attr); 122 sysfs_remove_file(&device->dev.kobj, &fan->fine_grain_control.attr); 133 sysfs_remove_file(&device->dev.kobj, &fan->fps[i].dev_attr.attr); 135 sysfs_remove_file(&device->dev.kobj, &fan->fst_speed.attr); 136 sysfs_remove_file(&device->dev.kobj, &fan->fine_grain_control.attr);
|
/linux-master/include/linux/ |
H A D | kobject_ns.h | 51 const struct kobj_ns_type_operations *kobj_ns_ops(const struct kobject *kobj);
|
/linux-master/fs/zonefs/ |
H A D | sysfs.c | 23 static ssize_t zonefs_sysfs_attr_show(struct kobject *kobj, argument 27 container_of(kobj, struct zonefs_sb_info, s_kobj); 70 static void zonefs_sysfs_sb_release(struct kobject *kobj) argument 73 container_of(kobj, struct zonefs_sb_info, s_kobj);
|
/linux-master/fs/erofs/ |
H A D | sysfs.c | 107 static ssize_t erofs_attr_show(struct kobject *kobj, argument 110 struct erofs_sb_info *sbi = container_of(kobj, struct erofs_sb_info, 130 static ssize_t erofs_attr_store(struct kobject *kobj, struct attribute *attr, argument 133 struct erofs_sb_info *sbi = container_of(kobj, struct erofs_sb_info, 170 static void erofs_sb_release(struct kobject *kobj) argument 172 struct erofs_sb_info *sbi = container_of(kobj, struct erofs_sb_info, 193 .kobj = {.ktype = &erofs_ktype}, 254 kobject_set_name(&erofs_root.kobj, "erofs"); 255 erofs_root.kobj.parent = fs_kobj;
|
/linux-master/drivers/misc/ |
H A D | ds1682.c | 155 static ssize_t ds1682_eeprom_read(struct file *filp, struct kobject *kobj, argument 159 struct i2c_client *client = kobj_to_i2c_client(kobj); 173 static ssize_t ds1682_eeprom_write(struct file *filp, struct kobject *kobj, argument 177 struct i2c_client *client = kobj_to_i2c_client(kobj); 214 rc = sysfs_create_group(&client->dev.kobj, &ds1682_group); 218 rc = sysfs_create_bin_file(&client->dev.kobj, &ds1682_eeprom_attr); 225 sysfs_remove_group(&client->dev.kobj, &ds1682_group); 232 sysfs_remove_bin_file(&client->dev.kobj, &ds1682_eeprom_attr); 233 sysfs_remove_group(&client->dev.kobj, &ds1682_group);
|
/linux-master/drivers/w1/slaves/ |
H A D | w1_ds2438.c | 290 static ssize_t iad_write(struct file *filp, struct kobject *kobj, argument 294 struct w1_slave *sl = kobj_to_w1_slave(kobj); 312 static ssize_t iad_read(struct file *filp, struct kobject *kobj, argument 316 struct w1_slave *sl = kobj_to_w1_slave(kobj); 333 static ssize_t page0_read(struct file *filp, struct kobject *kobj, argument 337 struct w1_slave *sl = kobj_to_w1_slave(kobj); 363 static ssize_t page1_read(struct file *filp, struct kobject *kobj, argument 367 struct w1_slave *sl = kobj_to_w1_slave(kobj); 393 static ssize_t offset_write(struct file *filp, struct kobject *kobj, argument 397 struct w1_slave *sl = kobj_to_w1_slave(kobj); 412 temperature_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 433 vad_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 454 vdd_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument [all...] |
/linux-master/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | bioscfg.h | 284 static int get_##type##_instance_id(struct kobject *kobj) \ 289 if (!strcmp(kobj->name, bioscfg_drv.type##_data[i].attr_name_kobj->name)) \ 296 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 299 int i = get_##type##_instance_id(kobj); \ 306 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 309 int i = get_##type##_instance_id(kobj); \ 316 static ssize_t curr_val##_store(struct kobject *kobj, \ 330 i = get_##type##_instance_id(kobj); \ 335 ret = hp_set_attribute(kobj->name, attr_value); \ 348 static ssize_t name##_show(struct kobject *kobj, struc [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_sysfs.c | 106 ret = sysfs_create_link(&dev->kobj, &typec_connector->kobj, "typec_connector"); 110 ret = sysfs_create_link(&typec_connector->kobj, &dev->kobj, "drm_connector"); 112 sysfs_remove_link(&dev->kobj, "typec_connector"); 120 sysfs_remove_link(&typec_connector->kobj, "drm_connector"); 121 sysfs_remove_link(&dev->kobj, "typec_connector"); 264 static ssize_t edid_show(struct file *filp, struct kobject *kobj, argument 268 struct device *connector_dev = kobj_to_dev(kobj); 413 return sysfs_create_link(&connector->kdev->kobj, [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | usb4_port.c | 19 ret = sysfs_create_link(&dev->kobj, &connector->kobj, "connector"); 23 ret = sysfs_create_link(&connector->kobj, &dev->kobj, dev_name(dev)); 25 sysfs_remove_link(&dev->kobj, "connector"); 32 sysfs_remove_link(&connector->kobj, dev_name(dev)); 33 sysfs_remove_link(&dev->kobj, "connector"); 215 static umode_t service_attr_is_visible(struct kobject *kobj, argument 218 struct device *dev = kobj_to_dev(kobj);
|
/linux-master/drivers/firmware/ |
H A D | dmi-sysfs.c | 36 struct kobject kobj; member in struct:dmi_sysfs_entry 83 static void dmi_entry_free(struct kobject *kobj) argument 85 kfree(kobj); 88 static struct dmi_sysfs_entry *to_entry(struct kobject *kobj) argument 90 return container_of(kobj, struct dmi_sysfs_entry, kobj); 98 static ssize_t dmi_sysfs_attr_show(struct kobject *kobj, argument 101 struct dmi_sysfs_entry *entry = to_entry(kobj); 215 static ssize_t dmi_entry_attr_show(struct kobject *kobj, argument 225 return find_dmi_entry(to_entry(kobj 434 dmi_sel_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument 540 dmi_entry_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument 560 dmi_sysfs_entry_release(struct kobject *kobj) argument [all...] |
/linux-master/drivers/parisc/ |
H A D | pdc_stable.c | 93 struct kobject kobj; member in struct:pdcspath_entry 124 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj) 321 sysfs_remove_link(&entry->kobj, "device"); 324 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); 428 * @kobj: The kobject to get info from. 433 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 435 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); 447 * @kobj: The kobject to write info to. 453 pdcspath_attr_store(struct kobject *kobj, struc argument 516 pdcs_size_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 538 pdcs_auto_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf, int knob) argument 565 pdcs_autoboot_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 577 pdcs_autosearch_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 591 pdcs_timer_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 618 pdcs_osid_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 640 pdcs_osdep1_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 668 pdcs_diagnostic_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 694 pdcs_fastsize_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 724 pdcs_osdep2_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 762 pdcs_auto_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, int knob) argument 835 pdcs_autoboot_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 853 pdcs_autosearch_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 871 pdcs_osdep1_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 910 pdcs_osdep2_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/kernel/livepatch/ |
H A D | core.c | 355 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, argument 366 patch = container_of(kobj, struct klp_patch, kobj); 398 static ssize_t enabled_show(struct kobject *kobj, argument 403 patch = container_of(kobj, struct klp_patch, kobj); 407 static ssize_t transition_show(struct kobject *kobj, argument 412 patch = container_of(kobj, struct klp_patch, kobj); 417 static ssize_t force_store(struct kobject *kobj, struc argument 457 patched_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 591 klp_kobj_release_patch(struct kobject *kobj) argument 605 klp_kobj_release_object(struct kobject *kobj) argument 621 klp_kobj_release_func(struct kobject *kobj) argument [all...] |
/linux-master/kernel/power/ |
H A D | main.c | 115 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, argument 121 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, argument 139 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, argument 184 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, argument 220 static ssize_t sync_on_suspend_show(struct kobject *kobj, argument 226 static ssize_t sync_on_suspend_store(struct kobject *kobj, argument 257 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, argument 278 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, argument 390 static ssize_t _name##_show(struct kobject *kobj, \ 404 static ssize_t _name##_show(struct kobject *kobj, \ 421 last_failed_dev_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 435 last_failed_errno_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 449 last_failed_step_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 483 suspend_attr_is_visible(struct kobject *kobj, struct attribute *attr, int idx) argument 571 pm_print_times_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 577 pm_print_times_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 600 pm_wakeup_irq_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 620 pm_debug_messages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 626 pm_debug_messages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 668 state_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 715 state_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 778 wakeup_count_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 788 wakeup_count_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 820 autosleep_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 841 autosleep_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 863 wake_lock_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 870 wake_lock_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 880 wake_unlock_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 887 wake_unlock_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 903 pm_trace_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 910 pm_trace_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument 928 pm_trace_dev_match_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 940 pm_freeze_timeout_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 946 pm_freeze_timeout_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument [all...] |
/linux-master/drivers/pci/hotplug/ |
H A D | pci_hotplug_core.c | 300 retval = sysfs_create_file(&pci_slot->kobj, 307 retval = sysfs_create_file(&pci_slot->kobj, 314 retval = sysfs_create_file(&pci_slot->kobj, 321 retval = sysfs_create_file(&pci_slot->kobj, 328 retval = sysfs_create_file(&pci_slot->kobj, 338 sysfs_remove_file(&pci_slot->kobj, 342 sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_latch.attr); 345 sysfs_remove_file(&pci_slot->kobj, 349 sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr); 359 sysfs_remove_file(&pci_slot->kobj, [all...] |
/linux-master/net/core/ |
H A D | net-sysfs.c | 798 #define to_rx_queue(obj) container_of(obj, struct netdev_rx_queue, kobj) 800 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, argument 804 struct netdev_rx_queue *queue = to_rx_queue(kobj); 812 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, argument 816 struct netdev_rx_queue *queue = to_rx_queue(kobj); 1029 static void rx_queue_release(struct kobject *kobj) argument 1031 struct netdev_rx_queue *queue = to_rx_queue(kobj); 1049 memset(kobj, 0, sizeof(*kobj)); 1053 static const void *rx_queue_namespace(const struct kobject *kobj) argument 1065 rx_queue_get_ownership(const struct kobject *kobj, kuid_t *uid, kgid_t *gid) argument 1096 struct kobject *kobj = &queue->kobj; local 1133 struct kobject *kobj = &queue->kobj; local 1168 struct kobject *kobj = &dev->_rx[i].kobj; local 1221 netdev_queue_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 1234 netdev_queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument 1729 netdev_queue_release(struct kobject *kobj) argument 1737 netdev_queue_namespace(const struct kobject *kobj) argument 1749 netdev_queue_get_ownership(const struct kobject *kobj, kuid_t *uid, kgid_t *gid) argument 1777 struct kobject *kobj = &queue->kobj; local 1809 struct kobject *kobj = &queue->kobj; local [all...] |
/linux-master/drivers/base/ |
H A D | node.c | 29 static inline ssize_t cpumap_read(struct file *file, struct kobject *kobj, argument 33 struct device *dev = kobj_to_dev(kobj); 50 static inline ssize_t cpulist_read(struct file *file, struct kobject *kobj, argument 54 struct device *dev = kobj_to_dev(kobj); 157 kfree_const(dev->kobj.name); 210 if (sysfs_add_file_to_group(&c->dev.kobj, access_attrs[i], 667 ret = sysfs_create_link(&node_devices[nid]->dev.kobj, 668 &obj->kobj, 669 kobject_name(&obj->kobj)); 673 return sysfs_create_link(&obj->kobj, [all...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | spk_priv.h | 47 ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr, 49 ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
|
/linux-master/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_sysfs.c | 186 usnic_ib_qpn_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 191 qp_grp = container_of(kobj, struct usnic_ib_qp_grp, kobj); 255 kobject_get(&us_ibdev->ib_dev.dev.kobj); 257 &us_ibdev->ib_dev.dev.kobj); 259 kobject_put(&us_ibdev->ib_dev.dev.kobj); 278 err = kobject_init_and_add(&qp_grp->kobj, &usnic_ib_qpn_type, 293 kobject_put(&qp_grp->kobj);
|