for_each_insn_prefix(9)
β¨ for_each_insn_prefix(9) β¨
okay so bestie, this page is from the Kernel API Manual, and it's literally all about for_each_insn_prefix β the move for iterating over prefixes in an instruction. π
πΈ NAME πΈ
for_each_insn_prefix - - Iterate prefixes in the instruction
π SYNOPSIS π
for_each_insn_prefix (insn , prefix );
π¦ ARGUMENTS π¦
insnβ a pointer tostruct insn. yes bestie, that kind of pointer. π«Άprefixβ the prefix byte. iconic. β¨
π DESCRIPTION π
So what it does is iterate prefix bytes of the given insn. Each prefix byte is stored in prefix, and the index is stored in idx β and ngl, note that this idx is just a cursor, so do not change it. π
β οΈ okay important vibe check: sinceprefixes.nbytescan be bigger than4if some prefixes are repeated, it cannot be used for looping over the prefixes. no cap. π
π SEE ALSO π
- Kernel file
./tools/arch/x86/include/asm/insn.h
π mwah, this cutie comes from source/version ./tools/arch/x86/include/asm, dated October 2026 β slay, bye bestie! ππ
π¦ 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