drivers/gpu/drm/xe/xe_sriov_packet_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_sriov_packet_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_sriov_packet_types.h- Extension
.h- Size
- 2022 bytes
- Lines
- 76
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct xe_sriov_packet_hdrstruct xe_sriov_packetenum xe_sriov_packet_type
Annotated Snippet
struct xe_sriov_packet_hdr {
/** @version: migration data protocol version */
u8 version;
/** @type: migration data type */
u8 type;
/** @tile_id: migration data tile id */
u8 tile_id;
/** @gt_id: migration data gt id */
u8 gt_id;
/** @flags: migration data flags */
u32 flags;
/**
* @offset: offset into the resource;
* used when multiple packets of given type are used for migration
*/
u64 offset;
/** @size: migration data size */
u64 size;
} __packed;
/**
* struct xe_sriov_packet - Xe SR-IOV VF migration data packet
*/
struct xe_sriov_packet {
/** @xe: the PF &xe_device this data packet belongs to */
struct xe_device *xe;
/** @vaddr: CPU pointer to payload data */
void *vaddr;
/** @remaining: payload data remaining */
size_t remaining;
/** @hdr_remaining: header data remaining */
size_t hdr_remaining;
union {
/** @bo: Buffer object with migration data */
struct xe_bo *bo;
/** @buff: Buffer with migration data */
void *buff;
};
/** @hdr: data packet header */
struct xe_sriov_packet_hdr hdr;
};
#endif
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct xe_sriov_packet_hdr`, `struct xe_sriov_packet`, `enum xe_sriov_packet_type`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.