get_csr_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_csr_addr(9) β€” Kernel API Manual, now with group-chat energy πŸ’…

okay so bestie, this is the Kernel API Manual page for get_csr_addr(9), and it's short but it's iconic. let's get into it before the vibe check expires πŸ¦‹

🌸 NAME 🌸

get_csr_addr β€” return te iomem address for offset. yes, te. we are preserving the original typo because facts are sacred, even the silly ones 😭

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the signature, copied exactly because we do not mess with code:

void __iomem * get_csr_addr (const struct hfi1_devdata *dd , u32 offset
);

πŸ’– ARGUMENTS πŸ’–

  • dd β€” the dd device β€” that's the whole description, bestie, we're not adding lore 🫢
  • offset β€” the offset of the CSR within bar0 β€” exactly that, periodt ✨

✨ RETURN ✨

The iomem address to use in subsequent writeq/readq operations. that's the return value, and it's the whole return value πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

okay the cross-refs are stacked. The kernel file is ./drivers/infiniband/hw/hfi1/chip.c, and here are all the friends:


source/version: ./drivers/infiniband/hw/hfi1 Β· date: October 2026 Β· page: get_csr_addr(9). bye bestie, stay sparkly πŸ’–

πŸ“¦ where this page comes from