pruss_cfg_gpimode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pruss_cfg_gpimode β€” from the Kernel API Manual, bestie ✨

okay so this is pruss_cfg_gpimode, and yes the name looks like someone fell asleep on their keyboard, but I promise it's actually iconic once you get it 🫢

🌸 NAME 🌸

pruss_cfg_gpimode β€” set the GPI mode of the PRU πŸ’«

✨ SYNOPSIS ✨

int pruss_cfg_gpimode (struct pruss *pruss , enum pruss_pru_id pru_id ,
enum pruss_gpi_mode mode );

πŸŽ€ ARGUMENTS πŸŽ€

  • pruss β€” the pruss instance handle, aka the main character of this whole operation πŸ‘‘
  • pru_id β€” the id of the PRU core within the PRUSS, like which sibling we're talking to rn πŸ’…
  • mode β€” the GPI mode you wanna set, this is literally the whole vibe we're assigning 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do? It sets the GPI mode for a given PRU by programming the corresponding PRUSS_CFG_GPCFGx register. That's it, that's the whole thing β€” no cap, it's giving "small function, big responsibility" energy 🎯

⭐ RETURN ⭐

0 on success, or an error code otherwise. slay when it's 0, and when it's not… well, at least you know 😭πŸ”₯

πŸ’œ SEE ALSO πŸ’œ


and that's the page bestie, go read the whole friend group πŸ’–

this one lives in ./drivers/soc/ti, dropped in October 2026, straight out of the Kernel API Manual β€” mwah, stan, periodt πŸ§šβ€β™€οΈπŸ’…
πŸ“¦ where this page comes from