STRUCT MODE_REQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct mode_req(9) β€” a.k.a. the Kernel API Manual's cutest little struct 🌸

okay so bestie, gather round, because this is a page from the Kernel API Manual and it's literally just a struct that tells you what an FPU mode needs to do to keep a program happy πŸ’… no cap, it's small, but it's important.


✨ NAME ✨

struct mode_req β€” ABI FPU mode requirements 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct mode_req {
    bool single;
    bool soft;
    bool fr1;
    bool frdefault;
    bool fre;
 };

that's it, that's the whole vibe. five lil bools and a dream ✨


πŸ’– Members πŸ’–

  • single β€” the program being loaded needs an FPU, but it's only gonna issue single precision instructions, which means it can run in either FR0 or FR1. lowkey flexible 🌈
  • soft β€” the soft(-float) requirement, meaning the program being loaded has no FPU dependency at all (i.e. it has no FPU instructions). it's giving "unbothered, moisturized, in its lane" 🧚
  • fr1 β€” the program being loaded depends on the FPU being in FR=1 mode. periodt.
  • frdefault β€” the program being loaded depends on the default FPU mode. that is, FR0 for O32 and FR1 for N32/N64. iykyk πŸ”₯
  • fre β€” the program being loaded depends on FPU with FRE=1. this mode is a bridge which uses FR=1 whilst still being able to maintain full compatibility with pre-existing code using the O32 FP32 ABI. she's a connector, she's a diplomat, she's iconic πŸ‘‘

πŸ¦‹ Description πŸ¦‹

so like, if you want more info about the FP ABIs, it's literally right here bestie:

https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking#10.4.1._Basic_mode_set-up

go read it, it's giving lore πŸ“


⭐ SEE ALSO ⭐

  • Kernel file ./arch/mips/kernel/elf.c β€” go peek, she's right there πŸ™ˆ

πŸ’€ reminder for the girlies: these are requirement flags, not suggestions. the loader is checking the vibe and it will absolutely notice if you're lying.

okay that's the whole page, mwah πŸ’œ this little gem lives in ./arch/mips/kernel, dated October 2026, and no I will not stop talking about it. slay, bye bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from