drivers/pci/endpoint/pci-ep-cfs.c
Source file repositories/reference/linux-study-clean/drivers/pci/endpoint/pci-ep-cfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/endpoint/pci-ep-cfs.c- Extension
.c- Size
- 19675 bytes
- Lines
- 778
- 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/idr.hlinux/slab.hlinux/pci-epc.hlinux/pci-epf.hlinux/pci-ep-cfs.h
Detected Declarations
struct pci_epf_groupstruct pci_epc_groupfunction pci_secondary_epc_epf_linkfunction pci_secondary_epc_epf_unlinkfunction pci_primary_epc_epf_linkfunction pci_primary_epc_epf_unlinkfunction pci_epc_start_storefunction pci_epc_start_showfunction pci_epc_epf_linkfunction pci_epc_epf_unlinkfunction pci_ep_cfs_remove_epc_groupfunction pci_epf_msi_interrupts_storefunction pci_epf_msi_interrupts_showfunction pci_epf_msix_interrupts_storefunction pci_epf_msix_interrupts_showfunction pci_epf_vepf_linkfunction pci_epf_vepf_unlinkfunction pci_epf_releasefunction pci_epf_type_add_cfsfunction pci_ep_cfs_add_type_groupfunction pci_epf_cfs_add_sub_groupsfunction pci_epf_dropfunction pci_ep_cfs_remove_epf_groupfunction pci_ep_cfs_initfunction pci_ep_cfs_exitmodule init pci_ep_cfs_initexport pci_ep_cfs_add_epc_groupexport pci_ep_cfs_remove_epc_groupexport pci_ep_cfs_add_epf_groupexport pci_ep_cfs_remove_epf_group
Annotated Snippet
module_init(pci_ep_cfs_init);
static void __exit pci_ep_cfs_exit(void)
{
configfs_unregister_default_group(controllers_group);
configfs_unregister_default_group(functions_group);
configfs_unregister_subsystem(&pci_ep_cfs_subsys);
}
module_exit(pci_ep_cfs_exit);
MODULE_DESCRIPTION("PCI EP CONFIGFS");
MODULE_AUTHOR("Kishon Vijay Abraham I <kishon@ti.com>");
Annotation
- Immediate include surface: `linux/module.h`, `linux/idr.h`, `linux/slab.h`, `linux/pci-epc.h`, `linux/pci-epf.h`, `linux/pci-ep-cfs.h`.
- Detected declarations: `struct pci_epf_group`, `struct pci_epc_group`, `function pci_secondary_epc_epf_link`, `function pci_secondary_epc_epf_unlink`, `function pci_primary_epc_epf_link`, `function pci_primary_epc_epf_unlink`, `function pci_epc_start_store`, `function pci_epc_start_show`, `function pci_epc_epf_link`, `function pci_epc_epf_unlink`.
- 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.