xe_gt_sriov..._lmem_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xe_gt_sriov..._lmem_locked(9) β€” a Kernel API Manual moment ✨

okay bestie, welcome to the Kernel API Manual, we're doing a deep dive on one very specific little function and honestly? it's giving "tiny but powerful." no preamble, let's go 🫢


🌸 NAME 🌸

xe_gt_sriov_pf_config_get_lmem_locked β€” Get VF's LMEM quota. that's it, that's the whole thing. lowkey iconic πŸ’…


⭐ SYNOPSIS ⭐

u64 xe_gt_sriov_pf_config_get_lmem_locked (struct xe_gt *gt , unsigned
int vfid );

yup, returns a u64. the locked in the name is not a vibe, it's a contract β€” iykyk πŸ”’


πŸŽ€ ARGUMENTS πŸŽ€

  • gt β€” the xe_gt. that's the graphics tile you're poking at, bestie, it's right there in the type name ✨
  • vfid β€” the VF identifier. and listen, it can't be 0 == PFID. zero means Physical Function, which is a whole different thing, so don't even try it πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

This function can only be called on PF. like, that's the entire description. no extra lore, no hidden chapters. if you're not on the Physical Function, this is not your function, periodt πŸ’€


πŸ’œ RETURN πŸ’œ

VF's LMEM quota. that's the number you get back, that's the whole vibe, go spend it wisely πŸ‘‘


🌈 SEE ALSO 🌈

okay this is the part where the manpage just flexes on us. here's the whole friend group, in the exact order they showed up to the party πŸŽ‰

also, the kernel file it lives in: ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c β€” that's home base, that's where she resides 🏠


and that's the whole page, bestie!! you ate that. source is ./drivers/gpu/drm/xe, dated October 2026, and it's all filed under xe_gt_sriov..._lmem_locked(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from