pruss_cfg_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pruss_cfg_read(9) β€” kernel API manual, bestie edition

okay so this is a page from the Kernel API Manual and it's about pruss_cfg_read(9), and honestly? it's giving "small function, big responsibility." buckle up πŸŽ€


✨ NAME ✨

pruss_cfg_read β€” read a PRUSS CFG sub-module register πŸ”₯

like, you want a value out of the CFG sub-module? this is the girl for the job.


🌸 SYNOPSIS 🌸

int pruss_cfg_read (struct pruss *pruss , unsigned int reg , unsigned int *val );

three args, one int back. clean, minimal, iconic. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pruss β€” the pruss instance handle 🫢 your little passport to the PRUSS world, ngl.
  • reg β€” register offset within the CFG sub-module ✨ so like, which register we're peeking at.
  • val β€” pointer to return the value in πŸ’– it's a pointer, so the value comes back out through here. yes bestie, out-param behavior, we love a mutable argument.

πŸ’œ DESCRIPTION πŸ’œ

Reads a given register within the PRUSS CFG sub-module and returns it through the passed-in val pointer. that's it. that's the whole vibe. one read, one value, zero drama 🌈

lowkey important: the result doesn't come back as the function's return value β€” it lands in whatever val points at. don't be out here checking the return value for your register data, bestie 😭

⭐ RETURN ⭐

  • 0 on success πŸŽ‰ slay.
  • or an error code otherwise πŸ’€ (so like, do check it. fr fr.)

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/soc/ti/pruss.h πŸ“
  • pruss_cfg_update(9) β€” her sister function, go say hi πŸ‘‘

and that's the whole page, no cap πŸ’œ this lil beauty comes to you from ./drivers/soc/ti, dated October 2026 β€” mwah, go read your registers responsibly πŸ“βœ¨

πŸ“¦ where this page comes from