insn_get_modrm_rm_off(9)
π insn_get_modrm_rm_off(9) π
okay bestie, welcome to the Kernel API Manual page for insn_get_modrm_rm_off β yes, the name is a whole mouthful, but weβre gonna slay it together. π«Ά
β¨ NAME β¨
insn_get_modrm_rm_off β obtain register in r/m part of the ModRM byte.
π SYNOPSIS π
int insn_get_modrm_rm_off (struct insn *insn , struct pt_regs *regs );
π ARGUMENTS π
insnβ instruction containing the ModRM byte. Itβs the main character weβre inspecting. πregsβ register values as seen when entering kernel mode. Basically the receipts from kernel entry. β¨
π¦ DESCRIPTION π¦
The register indicated by the r/m part of the ModRM byte. The register is obtained as an offset from the base of pt_regs. In specific cases, the returned value can be -EDOM to indicate that the particular value of ModRM does not refer to a register and shall be ignored.
lowkey important: when that -EDOM shows up, it means βthis ModRM value does not refer to a register, ignore it, bestie.β π
π SEE ALSO π
the whole linked-page squad, no skips: π
- Kernel file
./arch/x86/lib/insn-eval.cβis_string_insn(9) insn_has_rep_prefix(9)get_seg_reg_override_idx(9)check_seg_overrides(9)resolve_default_seg(9)resolve_seg_reg(9)get_segment_selector(9)get_reg_offset_16(9)get_desc(9)insn_get_seg_base(9)get_seg_limit(9)insn_get_code_seg_params(9)insn_get_modrm_reg_off(9)insn_get_modrm_reg_ptr(9)get_seg_base_limit(9)get_eff_addr_reg(9)get_eff_addr_modrm(9)get_eff_addr_modrm_16(9)get_eff_addr_sib(9)get_addr_ref_16(9)get_addr_ref_32(9)get_addr_ref_64(9)insn_get_addr_ref(9)insn_fetch_from_user(9)insn_fetch_from_user_inatomic(9)insn_decode_from_regs(9)insn_decode_mmio(9)
mwah π β source/version ./arch/x86/lib, dated October 2026, for insn_get_modrm_rm_off(9). bestie, youβre gonna do amazing. π«Άβ¨
π¦ 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