mult_func(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈:


source/version ./arch/mips/kernel 🫢 dated October 2026 🌸 signed mult_func(9) πŸ’–

πŸ“¦ where this page comes from