drivers/virt/nitro_enclaves/ne_pci_dev.h
Source file repositories/reference/linux-study-clean/drivers/virt/nitro_enclaves/ne_pci_dev.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/virt/nitro_enclaves/ne_pci_dev.h- Extension
.h- Size
- 9004 bytes
- Lines
- 332
- Domain
- Driver Families
- Bucket
- drivers/virt
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/atomic.hlinux/list.hlinux/mutex.hlinux/pci.hlinux/pci_ids.hlinux/wait.h
Detected Declarations
struct enclave_start_reqstruct enclave_get_slot_reqstruct enclave_stop_reqstruct slot_alloc_reqstruct slot_free_reqstruct slot_add_mem_reqstruct slot_add_vcpu_reqstruct slot_count_reqstruct next_slot_reqstruct slot_info_reqstruct slot_add_bulk_vcpus_reqstruct ne_pci_dev_cmd_replystruct ne_pci_devenum ne_pci_dev_cmd_type
Annotated Snippet
extern struct pci_driver ne_pci_driver;
#endif /* _NE_PCI_DEV_H_ */
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/list.h`, `linux/mutex.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/wait.h`.
- Detected declarations: `struct enclave_start_req`, `struct enclave_get_slot_req`, `struct enclave_stop_req`, `struct slot_alloc_req`, `struct slot_free_req`, `struct slot_add_mem_req`, `struct slot_add_vcpu_req`, `struct slot_count_req`, `struct next_slot_req`, `struct slot_info_req`.
- Atlas domain: Driver Families / drivers/virt.
- Implementation status: pattern 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.