intel_engine_cmd_parser(9)
π 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 thingbatchβ the batch buffer in question π the main character of this whole storybatch_offsetβ byte offset in the batch at which execution starts, lowkey where the party beginsbatch_lengthβ length of the commands inbatch_objπ (yes, it saysbatch_obj, keep it, that's canon)shadowβ validated copy of the batch buffer in question πͺ the good twin, already checkedtrampolineβtrueif 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 π©
-EACCESif 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 π
- Kernel file
./drivers/gpu/drm/i915/i915_cmd_parser.cbatch buffer command parser(9) intel_engine_init_cmd_parser(9)intel_engine_cleanup_cmd_parser(9)i915_cmd_parser_get_version(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms