__riscv_isa...on_available(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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 🌈


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