insn_has_rep_prefix(9)
okay bestie, welcome to the Kernel API Manual page for insn_has_rep_prefix(9) β the tiny bool detective that checks for a REP prefix. Itβs giving βshort but iconic,β and weβre gonna read every crumb together, periodt. π
β¨
π NAME π
insn_has_rep_prefix β determine if instruction has a REP prefix. Thatβs the whole plot, no cap. π«Ά
β¨ SYNOPSIS β¨
bool insn_has_rep_prefix (struct insn *insn );
π ARGUMENTS π
insnβ Instruction containing the prefix to inspect. Thatβs the struct youβre vibe-checking, bestie. π
π¦ DESCRIPTION π¦
The vibe check is literally true if the instruction has a REP prefix, and false if not. Thatβs it β clean, simple, main character energy. πβ¨
π SEE ALSO π
The SEE ALSO list is basically the x86 instruction-eval group chat, and it starts with the Kernel file ./arch/x86/lib/insn-eval.c. Then all these besties get a shout-out, in this exact order:
is_string_insn(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_rm_off(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)
Thatβs the whole page, bestie! This one comes from the ./arch/x86/lib source corner, stamped October 2026, with insn_has_rep_prefix(9) sparkling as the page title at the bottom. So official, so cute. πππ¦
π¦ 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