madd_func(9)
πΈ madd_func(9) β the Kernel API Manual, bestie edition πΈ
okay so welcome to madd_func, straight out of the Kernel API Manual. this is the manpage for madd_func, and honestly? she's a short one. an icon of efficiency. we love a low-effort queen π
β¨ NAME β¨
madd_func β Emulate a MADD instruction π§
that's it. that's the whole vibe. she emulates, she madds (multiply-add, not "mad" β though honestly both work tbh).
β¨ SYNOPSIS β¨
int madd_func (struct pt_regs *regs , u32 ir );
like, she takes two things and returns an int. the full signature, verbatim, no notes:
int madd_func (struct pt_regs *regs , u32 ir );
β¨ ARGUMENTS β¨
regsβ the process register set π«Ά like, all the registers for this process, handed over in astruct pt_regs *. this is the "who are we even doing this for" of the situation.irβ the instruction π« au32carrying the actual instruction. this is the "what are we even doing" of the situation.
β¨ DESCRIPTION β¨
Returns 0 since it always succeeds. π₯
no cap. that's the description. she just works. no failure path, no drama, no edge cases to worry about β always succeeds, always returns 0. main character energy but make it a function return value πβ¨
β¨ SEE ALSO β¨
okay so here's the whole squad β the entire friend group of emulation functions, plus where to find the source π¦
Kernel file ./arch/mips/kernel/mips-r2-to-r6-emul.c β that's the file, bestie, go look at it 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)mult_func(9)multu_func(9)div_func(9)divu_func(9)dmult_func(9)dmultu_func(9)ddiv_func(9)ddivu_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)
not me listing all 27 of them π but that's the whole list, fr fr, nobody gets left out of the group chat.
quick vibe check: this page lives under./arch/mips/kernel, dated October 2026, and the manual itself ismadd_func(9). ππ
and that's the sign-off bestie β <rainbow>./arch/mips/kernelΒ· October 2026 Β·madd_func(9)` πβπ go forth and emulate, you're gonna slay β¨π
π¦ 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