intel_engine_cmd_parser(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… intel_engine_cmd_parser(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one lives in the intel_engine_cmd_parser(9) section and it's literally the bouncer at the club door for batch buffers 🫢


🌸 NAME 🌸

intel_engine_cmd_parser β€” parse a batch buffer for privilege violations

like, it reads the batch and goes "ma'am, you cannot sit here" if anything's being shady πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

int intel_engine_cmd_parser (struct intel_engine_cs *engine , struct
i915_vma *batch , unsigned long batch_offset , unsigned long
batch_length , struct i915_vma *shadow , bool trampoline );

that's the whole vibe, no cap πŸ’«


πŸ¦‹ ARGUMENTS πŸ¦‹

  • engine β€” the engine on which the batch is to execute ✨ like, which little GPU engine is gonna run this thing
  • batch β€” the batch buffer in question πŸ™ˆ the main character of this whole story
  • batch_offset β€” byte offset in the batch at which execution starts, lowkey where the party begins
  • batch_length β€” length of the commands in batch_obj πŸ“ (yes, it says batch_obj, keep it, that's canon)
  • shadow β€” validated copy of the batch buffer in question πŸͺž the good twin, already checked
  • trampoline β€” true if we need to trampoline into privileged execution πŸŽͺ bounce bounce, but make it kernel

πŸ’– DESCRIPTION πŸ’–

Parses the specified batch buffer looking for privilege violations as described in the overview. fr fr, that's the whole job β€” it reads through the batch and sniffs out anyone trying to do something they're absolutely not allowed to do πŸ’€


⭐ RETURN ⭐

  • non-zero if the parser finds violations or otherwise fails β€” so any non-zero is a red flag bestie, run 🚩
  • -EACCES if the batch appears legal but should use hardware parsing πŸ‘€ like it's technically fine but it needs to go through the hardware route, so it's still not a plain zero

🌈 SEE ALSO 🌈

iykyk, go read the source file, it's giving essential lore πŸ“š


and that's a wrap, bestie πŸ’œ this iconic little page comes from ./drivers/gpu/drm/i915, dated October 2026, filed under the Kernel API Manual β€” slay, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from