hw_test_and_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ hw_test_and_write(9) ✨

okay so bestie, welcome to the Kernel API Manual corner of the group chat. Today's main character is hw_test_and_write, and the NAME line is literally right here: it tests & writes a hw register. πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

hw_test_and_write β€” tests & writes a hw register.

πŸ¦‹ SYNOPSIS πŸ¦‹

u32 hw_test_and_write (struct ci_hdrc *ci , enum ci_hw_regs reg , u32
       mask , u32 data );

🌸 ARGUMENTS 🌸

  • ci β€” the controller.
  • reg β€” register index.
  • mask β€” bitfield mask.
  • data β€” new value.

πŸ’– DESCRIPTION πŸ’–

The DESCRIPTION is short and sweet: this function returns register contents. That's the whole flex, no cap. 😭✨

🌈 SEE ALSO 🌈

bestie, the kernel file to peek at is ./drivers/usb/chipidea/ci.h, and these friends are all linked too:


mwah πŸ’‹ this page is signing off from ./drivers/usb/chipidea, dated October 2026 β€” bye bestie! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from