qla4_83xx_rmw_crb_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, raddr and waddr can 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:

  1. read the value from raddr πŸ“–
  2. AND it with test_mask πŸŽ€
  3. Shift Left, Right/OR/XOR with the values from the RMW header πŸ”₯
  4. write the value to waddr ✍️

and that's it. that's the whole function. she ate and left no crumbs πŸ“


🌈 SEE ALSO 🌈


πŸ’€ 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