drivers/nvme/target/fc.c
Source file repositories/reference/linux-study-clean/drivers/nvme/target/fc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/nvme/target/fc.c- Extension
.c- Size
- 82010 bytes
- Lines
- 3027
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/module.hlinux/slab.hlinux/blk-mq.hlinux/parser.hlinux/random.huapi/scsi/fc/fc_fs.huapi/scsi/fc/fc_els.hnvmet.hlinux/nvme-fc-driver.hlinux/nvme-fc.h../host/fc.h
Detected Declarations
struct nvmet_fc_tgtportstruct nvmet_fc_tgt_assocstruct nvmet_fc_ls_iodstruct nvmet_fc_ls_req_opstruct nvmet_fc_fcp_iodstruct nvmet_fc_tgtportstruct nvmet_fc_port_entrystruct nvmet_fc_defer_fcp_reqstruct nvmet_fc_tgt_queuestruct nvmet_fc_hostportstruct nvmet_fc_tgt_assocstruct nvmet_fc_traddrenum nvmet_fcp_datadirfunction nvmet_fc_makeconnidfunction nvmet_fc_getassociationidfunction nvmet_fc_getqueueidfunction targetport_to_tgtportfunction nvmet_req_to_fodfunction nvmet_fc_put_lsop_workfunction mappingsfunction fc_dma_mapping_errorfunction fc_dma_unmap_singlefunction fc_dma_sync_single_for_cpufunction fc_dma_sync_single_for_devicefunction fc_map_sgfunction for_each_sgfunction fc_dma_map_sgfunction fc_dma_unmap_sgfunction __nvmet_fc_finish_ls_reqfunction __nvmet_fc_send_ls_reqfunction nvmet_fc_send_ls_req_asyncfunction nvmet_fc_disconnect_assoc_donefunction nvmet_fc_xmt_disconnect_assocfunction nvmet_fc_alloc_ls_iodlistfunction nvmet_fc_free_ls_iodlistfunction nvmet_fc_alloc_ls_iodfunction nvmet_fc_free_ls_iodfunction nvmet_fc_prep_fcp_iodlistfunction nvmet_fc_destroy_fcp_iodlistfunction nvmet_fc_alloc_fcp_iodfunction nvmet_fc_queue_fcp_reqfunction nvmet_fc_fcp_rqst_op_defer_workfunction nvmet_fc_free_fcp_iodfunction nvmet_fc_alloc_target_queuefunction nvmet_fc_tgt_queue_freefunction nvmet_fc_tgt_q_putfunction nvmet_fc_tgt_q_getfunction nvmet_fc_delete_target_queue
Annotated Snippet
module_init(nvmet_fc_init_module);
module_exit(nvmet_fc_exit_module);
MODULE_DESCRIPTION("NVMe target FC transport driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/blk-mq.h`, `linux/parser.h`, `linux/random.h`, `uapi/scsi/fc/fc_fs.h`, `uapi/scsi/fc/fc_els.h`, `nvmet.h`.
- Detected declarations: `struct nvmet_fc_tgtport`, `struct nvmet_fc_tgt_assoc`, `struct nvmet_fc_ls_iod`, `struct nvmet_fc_ls_req_op`, `struct nvmet_fc_fcp_iod`, `struct nvmet_fc_tgtport`, `struct nvmet_fc_port_entry`, `struct nvmet_fc_defer_fcp_req`, `struct nvmet_fc_tgt_queue`, `struct nvmet_fc_hostport`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.