get_csr_addr(9)
β¨ 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:
hfi1_addr_from_offset(9)read_csr(9)write_csr(9)update_xmit_counters(9)apply_link_downgrade_policy(9)is_rcv_avail_int(9)is_rcv_urgent_int(9)general_interrupt(9)hfi1_rcd_eoi_intr(9)hfi1_netdev_rx_napi(9)data_vls_operational(9)encode_rcv_header_entry_size(9)hfi1_validate_rcvhdrcnt(9)set_hdrq_regs(9)update_statusp(9)wait_logical_linkstate(9)read_mod_write(9)set_intr_bits(9)set_up_interrupts(9)hfi1_get_qp_map(9)init_qpmap_table(9)init_qos(9)hfi1_init_dd(9)create_pbc(9)
source/version: ./drivers/infiniband/hw/hfi1 Β· date: October 2026 Β· page: get_csr_addr(9). bye bestie, stay sparkly π
π¦ 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