/Linux-v5.10/include/linux/ |
D | configfs.h | 40 struct config_item { struct 45 struct config_item *ci_parent; argument 52 int config_item_set_name(struct config_item *, const char *, ...); argument 54 static inline char *config_item_name(struct config_item * item) in config_item_name() 59 extern void config_item_init_type_name(struct config_item *item, 63 extern struct config_item *config_item_get(struct config_item *); 64 extern struct config_item *config_item_get_unless_zero(struct config_item *); 65 extern void config_item_put(struct config_item *); 80 struct config_item cg_item; 92 static inline struct config_group *to_config_group(struct config_item *item) in to_config_group() [all …]
|
/Linux-v5.10/fs/configfs/ |
D | item.c | 24 static inline struct config_item *to_item(struct list_head *entry) in to_item() 26 return container_of(entry, struct config_item, ci_entry); in to_item() 36 static void config_item_init(struct config_item *item) in config_item_init() 51 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() 84 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() 103 struct config_item *config_item_get(struct config_item *item) in config_item_get() 111 struct config_item *config_item_get_unless_zero(struct config_item *item) in config_item_get_unless_zero() 119 static void config_item_cleanup(struct config_item *item) in config_item_cleanup() 123 struct config_item *parent = item->ci_parent; in config_item_cleanup() 139 config_item_cleanup(container_of(kref, struct config_item, ci_kref)); in config_item_release() [all …]
|
D | symlink.c | 24 static int item_depth(struct config_item * item) in item_depth() 26 struct config_item * p = item; in item_depth() 32 static int item_path_length(struct config_item * item) in item_path_length() 34 struct config_item * p = item; in item_path_length() 43 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path() 45 struct config_item * p; in fill_item_path() 58 static int configfs_get_target_path(struct config_item *item, in configfs_get_target_path() 59 struct config_item *target, char *path) in configfs_get_target_path() 79 static int create_link(struct config_item *parent_item, in create_link() 80 struct config_item *item, in create_link() [all …]
|
D | configfs_internal.h | 66 extern int configfs_is_root(struct config_item *item); 71 extern int configfs_create_file(struct config_item *, const struct configfs_attribute *); 72 extern int configfs_create_bin_file(struct config_item *, 102 static inline struct config_item * to_item(struct dentry * dentry) in to_item() 105 return ((struct config_item *) sd->s_element); in to_item() 121 static inline struct config_item *configfs_get_config_item(struct dentry *dentry) in configfs_get_config_item() 123 struct config_item * item = NULL; in configfs_get_config_item()
|
D | dir.c | 275 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() 407 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() 567 static void detach_attrs(struct config_item * item) in detach_attrs() 596 static int populate_attrs(struct config_item *item) in populate_attrs() 626 static int configfs_attach_group(struct config_item *parent_item, 627 struct config_item *item, 630 static void configfs_detach_group(struct config_item *item); 741 static void unlink_obj(struct config_item *item) in unlink_obj() 760 static void link_obj(struct config_item *parent_item, struct config_item *item) in link_obj() 827 static int configfs_attach_item(struct config_item *parent_item, in configfs_attach_item() [all …]
|
/Linux-v5.10/drivers/target/iscsi/ |
D | iscsi_target_stat.c | 44 static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item) in iscsi_instance_tiqn() 51 static ssize_t iscsi_stat_instance_inst_show(struct config_item *item, in iscsi_stat_instance_inst_show() 58 static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item, in iscsi_stat_instance_min_ver_show() 64 static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item, in iscsi_stat_instance_max_ver_show() 70 static ssize_t iscsi_stat_instance_portals_show(struct config_item *item, in iscsi_stat_instance_portals_show() 77 static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item, in iscsi_stat_instance_nodes_show() 83 static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, in iscsi_stat_instance_sessions_show() 90 static ssize_t iscsi_stat_instance_fail_sess_show(struct config_item *item, in iscsi_stat_instance_fail_sess_show() 106 static ssize_t iscsi_stat_instance_fail_type_show(struct config_item *item, in iscsi_stat_instance_fail_type_show() 116 static ssize_t iscsi_stat_instance_fail_rem_name_show(struct config_item *item, in iscsi_stat_instance_fail_rem_name_show() [all …]
|
D | iscsi_target_configfs.c | 34 static inline struct iscsi_tpg_np *to_iscsi_tpg_np(struct config_item *item) in to_iscsi_tpg_np() 39 static ssize_t lio_target_np_driver_show(struct config_item *item, char *page, in lio_target_np_driver_show() 55 static ssize_t lio_target_np_driver_store(struct config_item *item, in lio_target_np_driver_store() 116 static ssize_t lio_target_np_iser_show(struct config_item *item, char *page) in lio_target_np_iser_show() 121 static ssize_t lio_target_np_iser_store(struct config_item *item, in lio_target_np_iser_store() 129 static ssize_t lio_target_np_cxgbit_show(struct config_item *item, char *page) in lio_target_np_cxgbit_show() 134 static ssize_t lio_target_np_cxgbit_store(struct config_item *item, in lio_target_np_cxgbit_store() 281 static ssize_t iscsi_nacl_attrib_##name##_show(struct config_item *item,\ 291 static ssize_t iscsi_nacl_attrib_##name##_store(struct config_item *item,\ 377 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \ [all …]
|
/Linux-v5.10/drivers/target/ |
D | target_core_stat.c | 44 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev() 51 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() 58 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() 63 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() 68 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() 94 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() 101 static ssize_t target_stat_tgt_inst_show(struct config_item *item, char *page) in target_stat_tgt_inst_show() 108 static ssize_t target_stat_tgt_indx_show(struct config_item *item, char *page) in target_stat_tgt_indx_show() 113 static ssize_t target_stat_tgt_num_lus_show(struct config_item *item, in target_stat_tgt_num_lus_show() 119 static ssize_t target_stat_tgt_status_show(struct config_item *item, in target_stat_tgt_status_show() [all …]
|
D | target_core_fabric_configfs.c | 66 struct config_item *lun_acl_ci, in target_fabric_mappedlun_link() 67 struct config_item *lun_ci) in target_fabric_mappedlun_link() 74 struct config_item *nacl_ci, *tpg_ci, *tpg_ci_s, *wwn_ci, *wwn_ci_s; in target_fabric_mappedlun_link() 142 struct config_item *lun_acl_ci, in target_fabric_mappedlun_unlink() 143 struct config_item *lun_ci) in target_fabric_mappedlun_unlink() 153 static struct se_lun_acl *item_to_lun_acl(struct config_item *item) in item_to_lun_acl() 160 struct config_item *item, char *page) in target_fabric_mappedlun_write_protect_show() 178 struct config_item *item, const char *page, size_t count) in target_fabric_mappedlun_write_protect_store() 212 static void target_fabric_mappedlun_release(struct config_item *item) in target_fabric_mappedlun_release() 243 struct config_item *item) in target_core_mappedlun_stat_rmdir() [all …]
|
D | target_core_configfs.c | 76 item_to_hba(struct config_item *item) in item_to_hba() 84 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show() 97 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show() 103 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store() 271 struct config_item *item) in target_core_deregister_fabric() 322 int target_depend_item(struct config_item *item) in target_depend_item() 328 void target_undepend_item(struct config_item *item) in target_undepend_item() 505 static inline struct se_dev_attrib *to_attrib(struct config_item *item) in to_attrib() 513 static ssize_t _name##_show(struct config_item *item, char *page) \ 551 static ssize_t _name##_store(struct config_item *item, const char *page,\ [all …]
|
/Linux-v5.10/samples/configfs/ |
D | configfs_sample.c | 39 static inline struct childless *to_childless(struct config_item *item) in to_childless() 45 static ssize_t childless_showme_show(struct config_item *item, char *page) in childless_showme_show() 56 static ssize_t childless_storeme_show(struct config_item *item, char *page) in childless_storeme_show() 61 static ssize_t childless_storeme_store(struct config_item *item, in childless_storeme_store() 74 static ssize_t childless_description_show(struct config_item *item, char *page) in childless_description_show() 124 struct config_item item; 128 static inline struct simple_child *to_simple_child(struct config_item *item) in to_simple_child() 133 static ssize_t simple_child_storeme_show(struct config_item *item, char *page) in simple_child_storeme_show() 138 static ssize_t simple_child_storeme_store(struct config_item *item, in simple_child_storeme_store() 158 static void simple_child_release(struct config_item *item) in simple_child_release() [all …]
|
/Linux-v5.10/fs/dlm/ |
D | config.c | 50 static void drop_cluster(struct config_group *, struct config_item *); 51 static void release_cluster(struct config_item *); 53 static void drop_space(struct config_group *, struct config_item *); 54 static void release_space(struct config_item *); 55 static struct config_item *make_comm(struct config_group *, const char *); 56 static void drop_comm(struct config_group *, struct config_item *); 57 static void release_comm(struct config_item *); 58 static struct config_item *make_node(struct config_group *, const char *); 59 static void drop_node(struct config_group *, struct config_item *); 60 static void release_node(struct config_item *); [all …]
|
/Linux-v5.10/drivers/most/ |
D | configfs.c | 18 struct config_item item; 90 static struct mdev_link *to_mdev_link(struct config_item *item) in to_mdev_link() 113 static ssize_t mdev_link_create_link_store(struct config_item *item, in mdev_link_create_link_store() 135 static ssize_t mdev_link_destroy_link_store(struct config_item *item, in mdev_link_destroy_link_store() 160 static ssize_t mdev_link_direction_show(struct config_item *item, char *page) in mdev_link_direction_show() 165 static ssize_t mdev_link_direction_store(struct config_item *item, in mdev_link_direction_store() 178 static ssize_t mdev_link_datatype_show(struct config_item *item, char *page) in mdev_link_datatype_show() 183 static ssize_t mdev_link_datatype_store(struct config_item *item, in mdev_link_datatype_store() 197 static ssize_t mdev_link_device_show(struct config_item *item, char *page) in mdev_link_device_show() 202 static ssize_t mdev_link_device_store(struct config_item *item, in mdev_link_device_store() [all …]
|
/Linux-v5.10/drivers/nvme/target/ |
D | configfs.c | 56 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() 69 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() 93 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() 102 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() 122 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() 131 static ssize_t nvmet_addr_traddr_store(struct config_item *item, in nvmet_addr_traddr_store() 157 static ssize_t nvmet_addr_treq_show(struct config_item *item, char *page) in nvmet_addr_treq_show() 171 static ssize_t nvmet_addr_treq_store(struct config_item *item, in nvmet_addr_treq_store() 197 static ssize_t nvmet_addr_trsvcid_show(struct config_item *item, in nvmet_addr_trsvcid_show() 206 static ssize_t nvmet_addr_trsvcid_store(struct config_item *item, in nvmet_addr_trsvcid_store() [all …]
|
/Linux-v5.10/drivers/acpi/ |
D | acpi_configfs.c | 22 struct config_item cfg; 27 static ssize_t acpi_table_aml_write(struct config_item *cfg, in acpi_table_aml_write() 69 static inline struct acpi_table_header *get_header(struct config_item *cfg) in get_header() 79 static ssize_t acpi_table_aml_read(struct config_item *cfg, in acpi_table_aml_read() 102 static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str) in acpi_table_signature_show() 112 static ssize_t acpi_table_length_show(struct config_item *cfg, char *str) in acpi_table_length_show() 122 static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str) in acpi_table_revision_show() 132 static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str) in acpi_table_oem_id_show() 142 static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str) in acpi_table_oem_table_id_show() 152 static ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str) in acpi_table_oem_revision_show() [all …]
|
/Linux-v5.10/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 52 static inline struct f_uvc_opts *to_f_uvc_opts(struct config_item *item) in to_f_uvc_opts() 65 static void uvcg_config_item_release(struct config_item *item) in uvcg_config_item_release() 131 struct config_item item; 136 static struct uvcg_control_header *to_uvcg_control_header(struct config_item *item) in to_uvcg_control_header() 143 struct config_item *item, char *page) \ 147 struct config_item *opts_item; \ 165 uvcg_control_header_##cname##_store(struct config_item *item, \ 170 struct config_item *opts_item; \ 222 static struct config_item *uvcg_control_header_make(struct config_group *group, in uvcg_control_header_make() 261 struct config_item *item, char *page) \ [all …]
|
D | u_ether_configfs.h | 17 static void _f_##_attr_release(struct config_item *item) \ 29 static ssize_t _f_##_opts_dev_addr_show(struct config_item *item, \ 42 static ssize_t _f_##_opts_dev_addr_store(struct config_item *item, \ 64 static ssize_t _f_##_opts_host_addr_show(struct config_item *item, \ 77 static ssize_t _f_##_opts_host_addr_store(struct config_item *item, \ 99 static ssize_t _f_##_opts_qmult_show(struct config_item *item, \ 111 static ssize_t _f_##_opts_qmult_store(struct config_item *item, \ 138 static ssize_t _f_##_opts_ifname_show(struct config_item *item, \ 154 static ssize_t _f_##_opts_##_n_##_show(struct config_item *item,\ 167 static ssize_t _f_##_opts_##_n_##_store(struct config_item *item,\
|
/Linux-v5.10/drivers/pci/endpoint/ |
D | pci-ep-cfs.c | 34 static inline struct pci_epf_group *to_pci_epf_group(struct config_item *item) in to_pci_epf_group() 39 static inline struct pci_epc_group *to_pci_epc_group(struct config_item *item) in to_pci_epc_group() 44 static ssize_t pci_epc_start_store(struct config_item *item, const char *page, in pci_epc_start_store() 75 static ssize_t pci_epc_start_show(struct config_item *item, char *page) in pci_epc_start_show() 88 static int pci_epc_epf_link(struct config_item *epc_item, in pci_epc_epf_link() 89 struct config_item *epf_item) in pci_epc_epf_link() 110 static void pci_epc_epf_unlink(struct config_item *epc_item, in pci_epc_epf_unlink() 111 struct config_item *epf_item) in pci_epc_epf_unlink() 195 static ssize_t pci_epf_##_name##_show(struct config_item *item, char *page) \ 204 static ssize_t pci_epf_##_name##_store(struct config_item *item, \ [all …]
|
/Linux-v5.10/drivers/usb/gadget/ |
D | configfs.c | 56 static inline struct gadget_info *to_gadget_info(struct config_item *item) in to_gadget_info() 70 static inline struct config_usb_cfg *to_config_usb_cfg(struct config_item *item) in to_config_usb_cfg() 120 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 128 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 137 static ssize_t gadget_dev_desc_##_name##_store(struct config_item *item, \ 150 static ssize_t gadget_dev_desc_##_name##_store(struct config_item *item, \ 188 static ssize_t gadget_dev_desc_bcdDevice_store(struct config_item *item, in gadget_dev_desc_bcdDevice_store() 205 static ssize_t gadget_dev_desc_bcdUSB_store(struct config_item *item, in gadget_dev_desc_bcdUSB_store() 222 static ssize_t gadget_dev_desc_UDC_show(struct config_item *item, char *page) in gadget_dev_desc_UDC_show() 244 static ssize_t gadget_dev_desc_UDC_store(struct config_item *item, in gadget_dev_desc_UDC_store() [all …]
|
/Linux-v5.10/fs/ocfs2/cluster/ |
D | nodemanager.c | 145 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() 153 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() 158 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() 164 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() 185 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() 235 static ssize_t o2nm_node_ipv4_port_show(struct config_item *item, char *page) in o2nm_node_ipv4_port_show() 240 static ssize_t o2nm_node_ipv4_port_store(struct config_item *item, in o2nm_node_ipv4_port_store() 263 static ssize_t o2nm_node_ipv4_address_show(struct config_item *item, char *page) in o2nm_node_ipv4_address_show() 268 static ssize_t o2nm_node_ipv4_address_store(struct config_item *item, in o2nm_node_ipv4_address_store() 319 static ssize_t o2nm_node_local_show(struct config_item *item, char *page) in o2nm_node_local_show() [all …]
|
/Linux-v5.10/drivers/net/ |
D | netconsole.c | 99 struct config_item item; 235 static struct netconsole_target *to_target(struct config_item *item) in to_target() 246 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show() 251 static ssize_t extended_show(struct config_item *item, char *buf) in extended_show() 256 static ssize_t dev_name_show(struct config_item *item, char *buf) in dev_name_show() 261 static ssize_t local_port_show(struct config_item *item, char *buf) in local_port_show() 266 static ssize_t remote_port_show(struct config_item *item, char *buf) in remote_port_show() 271 static ssize_t local_ip_show(struct config_item *item, char *buf) in local_ip_show() 281 static ssize_t remote_ip_show(struct config_item *item, char *buf) in remote_ip_show() 291 static ssize_t local_mac_show(struct config_item *item, char *buf) in local_mac_show() [all …]
|
/Linux-v5.10/drivers/hwtracing/stm/ |
D | policy.c | 65 static inline struct stp_policy *to_stp_policy(struct config_item *item) in to_stp_policy() 73 to_stp_policy_node(struct config_item *item) in to_stp_policy_node() 81 void *to_pdrv_policy_node(struct config_item *item) in to_pdrv_policy_node() 90 stp_policy_node_masters_show(struct config_item *item, char *page) in stp_policy_node_masters_show() 102 stp_policy_node_masters_store(struct config_item *item, const char *page, in stp_policy_node_masters_store() 137 stp_policy_node_channels_show(struct config_item *item, char *page) in stp_policy_node_channels_show() 149 stp_policy_node_channels_store(struct config_item *item, const char *page, in stp_policy_node_channels_store() 182 static void stp_policy_node_release(struct config_item *item) in stp_policy_node_release() 273 stp_policy_node_drop(struct config_group *group, struct config_item *item) in stp_policy_node_drop() 293 static ssize_t stp_policy_device_show(struct config_item *item, in stp_policy_device_show() [all …]
|
D | p_sys-t.c | 118 static ssize_t sys_t_policy_uuid_show(struct config_item *item, in sys_t_policy_uuid_show() 127 sys_t_policy_uuid_store(struct config_item *item, const char *page, in sys_t_policy_uuid_store() 143 static ssize_t sys_t_policy_do_len_show(struct config_item *item, in sys_t_policy_do_len_show() 152 sys_t_policy_do_len_store(struct config_item *item, const char *page, in sys_t_policy_do_len_store() 168 static ssize_t sys_t_policy_ts_interval_show(struct config_item *item, in sys_t_policy_ts_interval_show() 177 sys_t_policy_ts_interval_store(struct config_item *item, const char *page, in sys_t_policy_ts_interval_store() 199 static ssize_t sys_t_policy_clocksync_interval_show(struct config_item *item, in sys_t_policy_clocksync_interval_show() 208 sys_t_policy_clocksync_interval_store(struct config_item *item, in sys_t_policy_clocksync_interval_store()
|
/Linux-v5.10/drivers/infiniband/core/ |
D | cma_configfs.c | 58 static struct cma_dev_port_group *to_dev_port_group(struct config_item *item) in to_dev_port_group() 74 static int cma_configfs_params_get(struct config_item *item, in cma_configfs_params_get() 100 static ssize_t default_roce_mode_show(struct config_item *item, in default_roce_mode_show() 121 static ssize_t default_roce_mode_store(struct config_item *item, in default_roce_mode_store() 146 static ssize_t default_roce_tos_show(struct config_item *item, char *buf) in default_roce_tos_show() 163 static ssize_t default_roce_tos_store(struct config_item *item, in default_roce_tos_store() 243 static void release_cma_dev(struct config_item *item) in release_cma_dev() 254 static void release_cma_ports_group(struct config_item *item) in release_cma_ports_group() 326 static void drop_cma_dev(struct config_group *cgroup, struct config_item *item) in drop_cma_dev()
|
/Linux-v5.10/Documentation/filesystems/ |
D | configfs.rst | 29 A configfs config_item is created via an explicit userspace operation: 121 Every object in configfs is a config_item. A config_item reflects an 138 struct config_item 143 struct config_item { 148 struct config_item *ci_parent; 154 void config_item_init(struct config_item *); 155 void config_item_init_type_name(struct config_item *, 158 struct config_item *config_item_get(struct config_item *); 159 void config_item_put(struct config_item *); 161 Generally, struct config_item is embedded in a container structure, a [all …]
|