STRUCT RISCV_IOMMU_COMMAND(9)
π struct riscv_iommu_command(9) π
okay bestie, welcome to the Kernel API Manual entry for struct riscv_iommu_command β yes that's the whole title, she's a long one, we love her anyway π«Ά
β¨ NAME β¨
struct riscv_iommu_command β the generic IOMMU command structure. that's it. that's the vibe. π
πΈ SYNOPSIS πΈ
here's the whole glow-up, literally the entire struct:
struct riscv_iommu_command {
u64 dword0;
u64 dword1;
};
two u64s. that's the main character energy right there. no cap. π
π¦ Members π¦
dword0β this one's got the opcode AND the function identifier living inside it. she contains multitudes β¨dword1β and this one's the opcode specific data. whatever the opcode wants, she provides π
π Description π
okay so here's the tea π β these commands get interpreted as two 64bit fields. and the layout? iconic, honestly:
- the first 7 bits of the first field are the opcode, and that opcode also defines the command's format (so like, the opcode is basically the vibe-setter for the whole thing π)
- then right after comes a 3bit field that specifies the function invoked by that command
- and the rest? opcode-specific. mystery. intrigue. iykyk π
so this is a generic struct β she's a blank canvas that gets populated differently according to each command. no two commands fill her in the same way fr fr π
and if you want more infos on the commands and the command queue, go check section 3.1. that's where the lore lives πβ¨
π§ SEE ALSO π§
the whole friend group, in order, no one left out π«Ά:
- Kernel file
./drivers/iommu/riscv/iommu-bits.henum riscv_iommu_igs_settings(9)enum riscv_iommu_ddtp_modes(9)enum riscv_iommu_hpmevent_id(9)struct riscv_iommu_dc(9)enum riscv_iommu_dc_iohgatp_modes(9)enum riscv_iommu_dc_fsc_atp_modes(9)struct riscv_iommu_pc(9)struct riscv_iommu_fq_record(9)enum riscv_iommu_fq_causes(9)enum riscv_iommu_fq_ttypes(9)struct riscv_iommu_pq_record(9)struct riscv_iommu_msipte(9)
lowkey a reminder bestie: it's giving "generic," so don't go assuming she behaves the same for every command β the format is defined by the opcode, periodt π
and that's the page!! πΈ sourced from ./drivers/iommu/riscv, dated October 2026 β mwah, go read some more manpages, ily, bye ππβ¨
π¦ 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