__riscv_isa...on_available(9)
β¨ __riscv_isa...on_available(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual and it's literally the vibe check for RISC-V CPU extensions π like, "does this chip have this feature or not" energy. Let's get into it π«Ά
πΈ NAME πΈ
__riscv_isa_extension_available β checks whether a given extension is available or not π¦
β SYNOPSIS β
bool __riscv_isa_extension_available (const unsigned long *isa_bitmap ,
unsigned int bit );
π ARGUMENTS π
isa_bitmapβ the ISA bitmap you wanna use, like the actual lookup table of extensions πbitβ the bit position of the extension you're curious about π
π₯ RETURN π₯
true or false. that's it, that's the whole answer, no cap β¨
π NOTE π
If isa_bitmap is NULL then the Host ISA bitmap will be used. so like, no bitmap? no problem, it just falls back to the host's own π§
π SEE ALSO π
- Kernel file
./arch/riscv/kernel/cpufeature.c riscv_isa_extension_base(9)
and that's the whole page, bestie π sign-off time: this lil piece lives in ./arch/riscv/kernel, dated October 2026, and it's giving iconic kernel docs energy π mwah π
π¦ 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