qla4_83xx_rmw_crb_reg(9)
π qla4_83xx_rmw_crb_reg(9) β like, the whole page, bestie
okay so this is from the Kernel API Manual, section 9, and the star of the show is qla4_83xx_rmw_crb_reg(9) β a lil function that does exactly what it says on the tin. Read. Modify. Write. On a CRB register. Iconic behaviour honestly π
β¨ NAME β¨
qla4_83xx_rmw_crb_reg β Read Modify Write crb register π
no cap, that's the whole vibe. it reads a thing, it messes with the thing, it writes the thing back.
πΈ SYNOPSIS πΈ
void qla4_83xx_rmw_crb_reg (struct scsi_qla_host *ha , uint32_t raddr ,
uint32_t waddr , struct qla4_83xx_rmw *p_rmw_hdr );
she returns void btw, so don't go looking for a return value. there isn't one. periodt. π
π¦ ARGUMENTS π¦
haβ pointer to the adapter structure π«Ά like, the whole adapter. hand her the adapter and she knows what to do.raddrβ the CRB address to read from π this is where the value gets scooped up.waddrβ the CRB address to write to β¨ this is where it lands after the makeover.p_rmw_hdrβ header with shift/or/xor values. she's got the receipts: the shift values, the OR values, the XOR values, all in there. π
ngl,raddrandwaddrcan absolutely be different addresses β the read spot and the write spot are their own separate things.
π§ DESCRIPTION π§
okay so here's the tea β β this function reads the value from raddr, ANDs it with test_mask, does a Shift Left, Right/OR/XOR with the values from the RMW header, and then writes the final value to waddr. literally read β glow-up β write. main character energy from start to finish π
β¨
so to recap the pipeline, bestie:
- read the value from
raddrπ - AND it with
test_maskπ - Shift Left, Right/OR/XOR with the values from the RMW header π₯
- write the value to
waddrβοΈ
and that's it. that's the whole function. she ate and left no crumbs π
π SEE ALSO π
- Kernel file
./drivers/scsi/qla4xxx/ql4_83xx.cπ (go read the source, iykyk) qla4_83xx_need_reset_handler(9)qla4_83xx_poll_reg(9)qla4_83xx_read_reset_template(9)qla4_83xx_read_write_crb_reg(9)qla4_83xx_process_reset_template(9)qla4_83xx_isp_reset(9)qla4_83xx_eport_init(9)qla4_83xx_is_detached(9)
π friendly reminder that this whole page lives in ./drivers/scsi/qla4xxx, and yes the date really says October 2026 β she's booked and busy, we love a scheduling icon π
k byeeee, go forth and modify-write responsibly, mwah π«Άππ
π¦ 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