/linux/fs/sysfs/ |
A D | file.c | 32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops() 44 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show() 104 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read() 259 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; in sysfs_add_file_mode_ns() local 265 if (WARN(!sysfs_ops, KERN_ERR in sysfs_add_file_mode_ns() 271 if (sysfs_ops->show && sysfs_ops->store) in sysfs_add_file_mode_ns() 273 else if (sysfs_ops->show) in sysfs_add_file_mode_ns() 275 else if (sysfs_ops->store) in sysfs_add_file_mode_ns() 278 if (sysfs_ops->show && sysfs_ops->store) in sysfs_add_file_mode_ns() 280 else if (sysfs_ops->show) in sysfs_add_file_mode_ns() [all …]
|
/linux/fs/xfs/ |
A D | xfs_sysfs.c | 62 static const struct sysfs_ops xfs_sysfs_ops = { 73 .sysfs_ops = &xfs_sysfs_ops, 245 .sysfs_ops = &xfs_sysfs_ops, 302 .sysfs_ops = &xfs_sysfs_ops, 387 .sysfs_ops = &xfs_sysfs_ops, 541 .sysfs_ops = &xfs_sysfs_ops, 547 .sysfs_ops = &xfs_sysfs_ops,
|
/linux/include/linux/ |
A D | kobject.h | 139 const struct sysfs_ops *sysfs_ops; member 170 extern const struct sysfs_ops kobj_sysfs_ops;
|
/linux/drivers/edac/ |
A D | edac_device_sysfs.c | 142 static const struct sysfs_ops device_ctl_info_ops = { 219 .sysfs_ops = &device_ctl_info_ops, 371 static const struct sysfs_ops device_instance_ops = { 401 .sysfs_ops = &device_instance_ops, 474 static const struct sysfs_ops device_block_ops = { 499 .sysfs_ops = &device_block_ops,
|
A D | edac_pci_sysfs.c | 122 static const struct sysfs_ops pci_instance_ops = { 147 .sysfs_ops = &pci_instance_ops, 261 static const struct sysfs_ops edac_pci_sysfs_ops = { 329 .sysfs_ops = &edac_pci_sysfs_ops,
|
/linux/drivers/cpuidle/ |
A D | sysfs.c | 190 static const struct sysfs_ops cpuidle_sysfs_ops = { 204 .sysfs_ops = &cpuidle_sysfs_ops, 437 static const struct sysfs_ops cpuidle_state_sysfs_ops = { 450 .sysfs_ops = &cpuidle_state_sysfs_ops, 585 static const struct sysfs_ops cpuidle_driver_sysfs_ops = { 596 .sysfs_ops = &cpuidle_driver_sysfs_ops,
|
/linux/fs/orangefs/ |
A D | orangefs-sysfs.c | 205 static const struct sysfs_ops orangefs_sysfs_ops = { 899 .sysfs_ops = &orangefs_sysfs_ops, 936 .sysfs_ops = &orangefs_sysfs_ops, 973 .sysfs_ops = &orangefs_sysfs_ops, 1010 .sysfs_ops = &orangefs_sysfs_ops, 1047 .sysfs_ops = &orangefs_sysfs_ops, 1077 .sysfs_ops = &orangefs_sysfs_ops, 1100 .sysfs_ops = &orangefs_sysfs_ops,
|
/linux/drivers/dma-buf/ |
A D | dma-buf-sysfs-stats.c | 78 static const struct sysfs_ops dma_buf_stats_sysfs_ops = { 116 .sysfs_ops = &dma_buf_stats_sysfs_ops,
|
/linux/drivers/md/ |
A D | dm-sysfs.c | 116 static const struct sysfs_ops dm_sysfs_ops = { 122 .sysfs_ops = &dm_sysfs_ops,
|
/linux/drivers/md/bcache/ |
A D | sysfs.h | 8 .sysfs_ops = &((const struct sysfs_ops) { \
|
/linux/fs/nfs/ |
A D | sysfs.c | 36 .sysfs_ops = &kobj_sysfs_ops, 149 .sysfs_ops = &kobj_sysfs_ops,
|
/linux/fs/ocfs2/cluster/ |
A D | masklog.c | 141 static const struct sysfs_ops mlog_attr_ops = { 148 .sysfs_ops = &mlog_attr_ops,
|
/linux/drivers/dma/ioat/ |
A D | sysfs.c | 70 const struct sysfs_ops ioat_sysfs_ops = { 163 .sysfs_ops = &ioat_sysfs_ops,
|
/linux/drivers/firmware/efi/ |
A D | runtime-map.c | 83 static const struct sysfs_ops map_attr_ops = { 96 .sysfs_ops = &map_attr_ops,
|
/linux/drivers/platform/x86/ |
A D | uv_sysfs.c | 201 static const struct sysfs_ops hub_sysfs_ops = { 207 .sysfs_ops = &hub_sysfs_ops, 353 static const struct sysfs_ops uv_port_sysfs_ops = { 359 .sysfs_ops = &uv_port_sysfs_ops, 525 static const struct sysfs_ops uv_pci_top_sysfs_ops = { 531 .sysfs_ops = &uv_pci_top_sysfs_ops,
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_topology.c | 256 static const struct sysfs_ops sysprops_ops = { 262 .sysfs_ops = &sysprops_ops, 296 static const struct sysfs_ops iolink_ops = { 302 .sysfs_ops = &iolink_ops, 328 static const struct sysfs_ops mem_ops = { 334 .sysfs_ops = &mem_ops, 373 static const struct sysfs_ops cache_ops = { 379 .sysfs_ops = &cache_ops, 542 static const struct sysfs_ops node_ops = { 548 .sysfs_ops = &node_ops,
|
/linux/arch/ia64/kernel/ |
A D | topology.c | 281 static const struct sysfs_ops cache_sysfs_ops = { 286 .sysfs_ops = &cache_sysfs_ops, 291 .sysfs_ops = &cache_sysfs_ops,
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | kobject.rst | 260 const struct sysfs_ops *sysfs_ops; 274 方法的一个指针。另外两个字段(sysfs_ops 和 default_attrs)控制这种
|
/linux/samples/kobject/ |
A D | kset-example.c | 89 static const struct sysfs_ops foo_sysfs_ops = { 189 .sysfs_ops = &foo_sysfs_ops,
|
/linux/drivers/firmware/ |
A D | dmi-sysfs.c | 111 static const struct sysfs_ops dmi_sysfs_attr_ops = { 229 static const struct sysfs_ops dmi_sysfs_specialize_attr_ops = { 309 .sysfs_ops = &dmi_sysfs_specialize_attr_ops, 567 .sysfs_ops = &dmi_sysfs_attr_ops,
|
/linux/fs/nilfs2/ |
A D | sysfs.c | 46 static const struct sysfs_ops nilfs_##name##_attr_ops = { \ 61 .sysfs_ops = &nilfs_##name##_attr_ops, \ 163 static const struct sysfs_ops nilfs_snapshot_attr_ops = { 170 .sysfs_ops = &nilfs_snapshot_attr_ops, 958 static const struct sysfs_ops nilfs_dev_attr_ops = { 965 .sysfs_ops = &nilfs_dev_attr_ops,
|
/linux/drivers/staging/greybus/ |
A D | audio_manager_module.c | 59 static const struct sysfs_ops gb_audio_module_sysfs_ops = { 147 .sysfs_ops = &gb_audio_module_sysfs_ops,
|
/linux/drivers/block/rnbd/ |
A D | rnbd-srv-sysfs.c | 37 .sysfs_ops = &kobj_sysfs_ops, 190 .sysfs_ops = &kobj_sysfs_ops,
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | ttm_memory.c | 166 static const struct sysfs_ops ttm_mem_zone_ops = { 173 .sysfs_ops = &ttm_mem_zone_ops, 230 static const struct sysfs_ops ttm_mem_global_ops = { 236 .sysfs_ops = &ttm_mem_global_ops,
|
/linux/fs/f2fs/ |
A D | sysfs.c | 962 static const struct sysfs_ops f2fs_attr_ops = { 969 .sysfs_ops = &f2fs_attr_ops, 974 .sysfs_ops = &f2fs_attr_ops, 983 .sysfs_ops = &f2fs_attr_ops, 1017 static const struct sysfs_ops f2fs_stat_attr_ops = { 1024 .sysfs_ops = &f2fs_stat_attr_ops, 1045 static const struct sysfs_ops f2fs_feature_list_attr_ops = { 1051 .sysfs_ops = &f2fs_feature_list_attr_ops,
|