drivers/target/target_core_configfs.c
Source file repositories/reference/linux-study-clean/drivers/target/target_core_configfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/target/target_core_configfs.c- Extension
.c- Size
- 104630 bytes
- Lines
- 3873
- Domain
- Driver Families
- Bucket
- drivers/target
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kstrtox.hlinux/module.hlinux/moduleparam.hgenerated/utsrelease.hlinux/utsname.hlinux/init.hlinux/fs.hlinux/namei.hlinux/slab.hlinux/types.hlinux/delay.hlinux/unistd.hlinux/string.hlinux/parser.hlinux/syscalls.hlinux/configfs.hlinux/spinlock.htarget/target_core_base.htarget/target_core_backend.htarget/target_core_fabric.htarget_core_internal.htarget_core_alua.htarget_core_pr.htarget_core_rd.htarget_core_xcopy.h
Detected Declarations
function item_to_hbafunction target_core_item_version_showfunction target_core_item_dbroot_showfunction target_core_item_dbroot_storefunction request_modulefunction target_core_deregister_fabricfunction target_depend_itemfunction target_undepend_itemfunction target_disable_featurefunction target_default_get_inst_indexfunction target_default_sess_get_indexfunction target_set_default_node_attributesfunction target_fabric_tf_ops_checkfunction target_set_default_opsfunction target_register_templatefunction target_unregister_templatefunction dev_set_t10_wwn_model_aliasfunction emulate_model_alias_storefunction emulate_write_cache_storefunction emulate_ua_intlck_ctrl_storefunction emulate_tas_storefunction target_try_configure_unmapfunction emulate_tpu_storefunction iblock_create_virtdevicefunction emulate_tpws_storefunction iblock_create_virtdevicefunction pi_prot_type_storefunction pi_prot_format_showfunction pi_prot_format_storefunction pi_prot_verify_storefunction force_pr_aptpl_storefunction emulate_rest_reord_storefunction unmap_zeroes_data_storefunction iblock_configure_devicefunction queue_depth_storefunction optimal_sectors_storefunction block_size_storefunction alua_support_showfunction alua_support_storefunction pgr_support_showfunction pgr_support_storefunction emulate_rsoc_storefunction submit_type_storefunction complete_type_storefunction target_check_inquiry_datafunction target_wwn_vendor_id_showfunction target_wwn_vendor_id_storefunction fly
Annotated Snippet
module_init(target_core_init_configfs);
module_exit(target_core_exit_configfs);
Annotation
- Immediate include surface: `linux/kstrtox.h`, `linux/module.h`, `linux/moduleparam.h`, `generated/utsrelease.h`, `linux/utsname.h`, `linux/init.h`, `linux/fs.h`, `linux/namei.h`.
- Detected declarations: `function item_to_hba`, `function target_core_item_version_show`, `function target_core_item_dbroot_show`, `function target_core_item_dbroot_store`, `function request_module`, `function target_core_deregister_fabric`, `function target_depend_item`, `function target_undepend_item`, `function target_disable_feature`, `function target_default_get_inst_index`.
- Atlas domain: Driver Families / drivers/target.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.