pruss_cfg_read(9)
π 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 β
0on 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
- 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