drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h- Extension
.h- Size
- 1046 bytes
- Lines
- 36
- 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
xe_gt_types.hxe_sriov_pf_helpers.h
Detected Declarations
function xe_gt_sriov_pf_assert_vfid
Annotated Snippet
#ifndef _XE_GT_SRIOV_PF_HELPERS_H_
#define _XE_GT_SRIOV_PF_HELPERS_H_
#include "xe_gt_types.h"
#include "xe_sriov_pf_helpers.h"
/**
* xe_gt_sriov_pf_assert_vfid() - warn if &id is not a supported VF number when debugging.
* @gt: the PF &xe_gt to assert on
* @vfid: the VF number to assert
*
* Assert that > belongs to the Physical Function (PF) device and provided &vfid
* is within a range of supported VF numbers (up to maximum number of VFs that
* driver can support, including VF0 that represents the PF itself).
*
* Note: Effective only on debug builds. See `Xe Asserts`_ for more information.
*/
#define xe_gt_sriov_pf_assert_vfid(gt, vfid) xe_sriov_pf_assert_vfid(gt_to_xe(gt), (vfid))
static inline int xe_gt_sriov_pf_get_totalvfs(struct xe_gt *gt)
{
return xe_sriov_pf_get_totalvfs(gt_to_xe(gt));
}
static inline struct mutex *xe_gt_sriov_pf_master_mutex(struct xe_gt *gt)
{
return xe_sriov_pf_master_mutex(gt_to_xe(gt));
}
#endif
Annotation
- Immediate include surface: `xe_gt_types.h`, `xe_sriov_pf_helpers.h`.
- Detected declarations: `function xe_gt_sriov_pf_assert_vfid`.
- 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.