pru_rproc_set_ctable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pru_rproc_set_ctable(9) β€” the Kernel API Manual page your bestie needs

okay so picture this: it's a Kernel API Manual page, the title is pru_rproc_set_ctable(9), and it's literally about setting the constant table index for the PRU. that's the whole vibe. let's get into it bestie 🫢


✨ NAME ✨

pru_rproc_set_ctable β€” set the constant table index for the PRU 🌸

like, that's the job. that's the assignment. it ate and left no crumbs.


πŸ’– SYNOPSIS πŸ’–

int pru_rproc_set_ctable (struct rproc *rproc , enum pru_ctable_idx c ,
u32 addr );

look at that signature. iconic. returns an int, takes three args, no notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • rproc β€” the rproc instance of the PRU. yep, the actual remoteproc thing you're working with, main character energy fr fr
  • c β€” constant table index to set. it's an enum pru_ctable_idx, so it's giving "pick your index" ✨
  • addr β€” physical address to set it to. a u32, so no funny business, just the physical address bestie

⭐ RETURN ⭐

0 on success, or errno in error case.

that's it. zero means slay, anything else means the errno is telling you what went wrong. no cap πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

go look at the kernel file ./drivers/remoteproc/pru_rproc.c β€” that's the source of truth, iykyk πŸ‘‘

and then these besties right here, all in the same friend group:


lowkey a reminder that this whole page lives under ./drivers/remoteproc β€” that's the home base 🏑

and that's the page!! mwah πŸ’‹ before you go, the little sign-off at the bottom: this one's from the ./drivers/remoteproc source, October 2026 era, and the page itself is pru_rproc_set_ctable(9) β€” periodt. πŸŒˆπŸŽ€πŸ’œ

πŸ“¦ where this page comes from