arch/um/drivers/virt-pci.h
Source file repositories/reference/linux-study-clean/arch/um/drivers/virt-pci.h
File Facts
- System
- Linux kernel
- Corpus path
arch/um/drivers/virt-pci.h- Extension
.h- Size
- 1301 bytes
- Lines
- 42
- Domain
- Architecture Layer
- Bucket
- arch/um
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/pci.h
Detected Declarations
struct um_pci_devicestruct um_pci_ops
Annotated Snippet
struct um_pci_device {
const struct um_pci_ops *ops;
/* for now just standard BARs */
u8 resptr[PCI_STD_NUM_BARS];
int irq;
};
struct um_pci_ops {
unsigned long (*cfgspace_read)(struct um_pci_device *dev,
unsigned int offset, int size);
void (*cfgspace_write)(struct um_pci_device *dev, unsigned int offset,
int size, unsigned long val);
unsigned long (*bar_read)(struct um_pci_device *dev, int bar,
unsigned int offset, int size);
void (*bar_write)(struct um_pci_device *dev, int bar,
unsigned int offset, int size, unsigned long val);
void (*bar_copy_from)(struct um_pci_device *dev, int bar, void *buffer,
unsigned int offset, int size);
void (*bar_copy_to)(struct um_pci_device *dev, int bar,
unsigned int offset, const void *buffer, int size);
void (*bar_set)(struct um_pci_device *dev, int bar,
unsigned int offset, u8 value, int size);
};
int um_pci_device_register(struct um_pci_device *dev);
void um_pci_device_unregister(struct um_pci_device *dev);
int um_pci_platform_device_register(struct um_pci_device *dev);
void um_pci_platform_device_unregister(struct um_pci_device *dev);
#endif /* __UM_VIRT_PCI_H */
Annotation
- Immediate include surface: `linux/pci.h`.
- Detected declarations: `struct um_pci_device`, `struct um_pci_ops`.
- Atlas domain: Architecture Layer / arch/um.
- Implementation status: source implementation candidate.
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.