drivers/nvme/target/fcloop.c
Source file repositories/reference/linux-study-clean/drivers/nvme/target/fcloop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/nvme/target/fcloop.c- Extension
.c- Size
- 41953 bytes
- Lines
- 1808
- 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.
- 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/parser.huapi/scsi/fc/fc_fs.h../host/nvme.h../target/nvmet.hlinux/nvme-fc-driver.hlinux/nvme-fc.h
Detected Declarations
struct fcloop_ctrl_optionsstruct fcloop_lportstruct fcloop_lport_privstruct fcloop_rportstruct fcloop_tportstruct fcloop_nportstruct fcloop_lsreqstruct fcloop_rscnstruct fcloop_fcpreqstruct fcloop_ini_fcpreqfunction fcloop_verify_addrfunction fcloop_parse_optionsfunction fcloop_parse_nm_optionsfunction ls_rsp_to_lsreqfunction tgt_fcp_req_to_fcpreqfunction fcloop_create_queuefunction fcloop_delete_queuefunction fcloop_h2t_ls_reqfunction fcloop_h2t_xmt_ls_rspfunction fcloop_tport_lsrqst_workfunction fcloop_t2h_ls_reqfunction fcloop_t2h_xmt_ls_rspfunction fcloop_t2h_host_releasefunction fcloop_tgt_rscn_workfunction fcloop_tgt_discovery_evtfunction fcloop_tfcp_req_putfunction fcloop_tfcp_req_getfunction fcloop_call_host_donefunction check_for_dropfunction fcloop_fcp_recv_workfunction fcloop_fcp_abort_recv_workfunction fcloop_tgt_fcprqst_done_workfunction fcloop_fcp_reqfunction fcloop_fcp_copy_datafunction fcloop_fcp_opfunction fcloop_tgt_fcp_abortfunction fcloop_fcp_req_releasefunction fcloop_h2t_ls_abortfunction fcloop_lport_putfunction fcloop_lport_getfunction fcloop_nport_putfunction fcloop_nport_getfunction fcloop_localport_deletefunction fcloop_remoteport_deletefunction fcloop_targetport_deletefunction fcloop_create_local_portfunction __localport_unregfunction __fcloop_nport_lookup
Annotated Snippet
module_init(fcloop_init);
module_exit(fcloop_exit);
MODULE_DESCRIPTION("NVMe target FC loop transport driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/parser.h`, `uapi/scsi/fc/fc_fs.h`, `../host/nvme.h`, `../target/nvmet.h`, `linux/nvme-fc-driver.h`, `linux/nvme-fc.h`.
- Detected declarations: `struct fcloop_ctrl_options`, `struct fcloop_lport`, `struct fcloop_lport_priv`, `struct fcloop_rport`, `struct fcloop_tport`, `struct fcloop_nport`, `struct fcloop_lsreq`, `struct fcloop_rscn`, `struct fcloop_fcpreq`, `struct fcloop_ini_fcpreq`.
- 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.
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.