mult_func(9)
π
mult_func(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the mult_func(9) page in the Kernel API Manual. This one is short, it is direct, and it is lowkey iconic for not wasting anybody's time. It's here to emulate a MULT instruction, and that's the whole serve. π
π NAME π
mult_func β Emulate a MULT instruction. That's it, that's the name section, and it ate. π
β¨ SYNOPSIS β¨
Here's the exact signature, bestie β do not freehand this:
int mult_func (struct pt_regs *regs , u32 ir );
π ARGUMENTS π
Two arguments, both doing their little jobs. Let's go:
regsβ Process register set. Like, the process's register set, periodt. π«Άirβ Instruction. The instruction itself. No cap. π
π¦ DESCRIPTION π¦
Returns 0 since it always succeeds. The way this has zero drama is honestly aspirational πβ¨ β it always succeeds, and it hands back 0. Main character behavior fr fr.
π SEE ALSO π
Kernel file ./arch/mips/kernel/mips-r2-to-r6-emul.c is the spot, and the whole friend group is linked here. iykyk π:
mipsr6_emul(9)movf_func(9)movt_func(9)jr_func(9)movz_func(9)movn_func(9)mfhi_func(9)mthi_func(9)mflo_func(9)mtlo_func(9)multu_func(9)div_func(9)divu_func(9)dmult_func(9)dmultu_func(9)ddiv_func(9)ddivu_func(9)madd_func(9)maddu_func(9)msub_func(9)msubu_func(9)mul_func(9)clz_func(9)clo_func(9)dclz_func(9)dclo_func(9)mipsr2_decoder(9)
source/version ./arch/mips/kernel π«Ά dated October 2026 πΈ signed mult_func(9) π
π¦ 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