STRUCT MODE_REQ(9)
πΈ 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
- 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