ddiv_func(9)
hey bestie, welcome to ddiv_func(9) from the Kernel API Manual β it's giving βEmulate a DDIV instructionβ energy and we're here for it β¨
π NAME π
ddiv_func β Emulate a DDIV instruction π«
β¨ SYNOPSIS β¨
int ddiv_func (struct pt_regs *regs , u32 ir );
π ARGUMENTS π
regsβ process register set π«Ά (the registers for the process, bestie)irβ instruction π (the instruction itself)
πΈ DESCRIPTION πΈ
Okay so the tea is simple: it returns 0 on success, or SIGILL for 32-bit kernels ππ no cap.
π¦ SEE ALSO π¦
Kernel file ./arch/mips/kernel/mips-r2-to-r6-emul.c β go read, iykyk π§ and then say hi to the whole emulation squad:
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)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)
that's the whole page, bestie π β source/version ./arch/mips/kernel, dated October 2026, and it's ddiv_func(9) all the way down. go emulate that DDIV and 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