xe_pxp_bo_key_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_pxp_bo_key_check(9) πŸ’…

okay so this is a page from the Kernel API Manual bestie, and it's literally about one tiny function that does a vibe check on your BO's key πŸ”‘βœ¨


✨ NAME ✨

xe_pxp_bo_key_check β€” bestie, this is the function that checks whether the key some xe_bo is using is actually valid πŸŽ€


🌸 SYNOPSIS 🌸

int xe_pxp_bo_key_check (struct xe_pxp *pxp , struct xe_bo *bo );

like that's it. that's the whole signature. two args, one int back, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pxp β€” the xe->pxp pointer, and heads up, it will literally be NULL if PXP is disabled. not "maybe", not "possibly" β€” it will be NULL. iykyk πŸ’€
  • bo β€” the BO we want to check. that's the one. the main character πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so what it does is: it checks whether a BO was encrypted with the current key or with an obsolete one. that's the whole bit. key audit energy, honestly iconic πŸ‘‘


πŸ”₯ RETURN πŸ”₯

it gives you back an int, and the value tells you everything:

  • 0 β†’ slay, the key is valid βœ…
  • -ENODEV β†’ PXP is disabled, so like… nothing to check here bestie πŸ™ˆ
  • -EINVAL β†’ the BO is not using PXP at all, so this whole call was not it 😭
  • -ENOEXEC β†’ nope, the key is not valid. failed the vibe check, periodt πŸ’€

🌈 SEE ALSO 🌈

kernel file ./drivers/gpu/drm/xe/xe_pxp.c, plus the whole PXP friend group 🫢:


aaaand that's the page!! πŸ’œ this lil gem lives in ./drivers/gpu/drm/xe, it's dated October 2026, and the whole thing is filed under xe_pxp_bo_key_check(9) β€” go forth and check those keys bestie, ily, mwah πŸ§šπŸ’–

πŸ“¦ where this page comes from