drivers/gpu/drm/xe/xe_sriov_pf_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_sriov_pf_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_sriov_pf_types.h- Extension
.h- Size
- 1773 bytes
- Lines
- 71
- 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/mutex.hlinux/types.hxe_guard.hxe_sriov_pf_migration_types.hxe_sriov_pf_provision_types.hxe_sriov_pf_service_types.h
Detected Declarations
struct kobjectstruct xe_sriov_metadatastruct xe_device_pf
Annotated Snippet
struct xe_sriov_metadata {
/** @kobj: kobject representing VF in PF's SR-IOV sysfs tree. */
struct kobject *kobj;
/** @version: negotiated VF/PF ABI version */
struct xe_sriov_pf_service_version version;
/** @migration: migration state */
struct xe_sriov_migration_state migration;
};
/**
* struct xe_device_pf - Xe PF related data
*
* The data in this structure is valid only if driver is running in the
* @XE_SRIOV_MODE_PF mode.
*/
struct xe_device_pf {
/** @device_total_vfs: Maximum number of VFs supported by the device. */
u16 device_total_vfs;
/** @driver_max_vfs: Maximum number of VFs supported by the driver. */
u16 driver_max_vfs;
/** @guard_vfs_enabling: guards VFs enabling */
struct xe_guard guard_vfs_enabling;
/** @master_lock: protects all VFs configurations across GTs */
struct mutex master_lock;
/** @provision: device level provisioning data. */
struct xe_sriov_pf_provision provision;
/** @migration: device level migration data. */
struct xe_sriov_pf_migration migration;
/** @service: device level service data. */
struct xe_sriov_pf_service service;
/** @sysfs: device level sysfs data. */
struct {
/** @sysfs.root: the root kobject for all SR-IOV entries in sysfs. */
struct kobject *root;
} sysfs;
/** @vfs: metadata for all VFs. */
struct xe_sriov_metadata *vfs;
};
#endif
Annotation
- Immediate include surface: `linux/mutex.h`, `linux/types.h`, `xe_guard.h`, `xe_sriov_pf_migration_types.h`, `xe_sriov_pf_provision_types.h`, `xe_sriov_pf_service_types.h`.
- Detected declarations: `struct kobject`, `struct xe_sriov_metadata`, `struct xe_device_pf`.
- 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.