read_mod_write(9)
π read_mod_write(9) β like, the kernel API manual page, bestie π
Okay so this is read_mod_write, straight out of the 9 section of the manual β kernel API territory, iykyk. Buckle up, it's a short one but she's important. β¨
πΈ NAME πΈ
read_mod_write β the way we calculate the IRQ register index and set/clear the bits. That's literally the whole job description. No cap. π
π¦ SYNOPSIS π¦
void read_mod_write (struct hfi1_devdata *dd , u16 src , u64 bits , bool
set );
That's it. That's the whole signature. She's void, she's got four args, she's doing her thing. π₯
β¨ ARGUMENTS β¨
ddβ a validdevdata, bestie. Valid. Don't be coming at her with your invalid devdata, she will not be having it πsrcβ the IRQ source, which is literally what we use to determine the register index from. Like, it's giving "lookup key" energy. πbitsβ the bits that get set or get cleared. Whichever one you're on. Those bits. πsetβtrue== set the bits,false== clear the bits. Iconic boolean behaviour, truly the main character of this function ngl β
π SEE ALSO π
Okay so first up, the kernel file herself:
- Kernel file
./drivers/infiniband/hw/hfi1/chip.c
And then the whole friend group, like the entire extended squad, all of them, no one left out π«Ά:
hfi1_addr_from_offset(9)read_csr(9)write_csr(9)get_csr_addr(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)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)
Literally the whole chip.c friend group, go say hi to all of them π
Lowkey a vibe check reminder: this page is read_mod_write(9) from the kernel API manual, and everything above is the whole page β no deleted sections, no cut lore, she's complete. π§
Mwah, that's a wrap bestie π β this one comes to you from ./drivers/infiniband/hw/hfi1, dated October 2026, and it ate, periodt. π
π¦ 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