pruss_cfg_gpimode(9)
π 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 π
- Kernel file
./drivers/soc/ti/pruss.cstruct pruss_private_data(9) pruss_get(9)pruss_put(9)pruss_request_mem_region(9)pruss_release_mem_region(9)pruss_cfg_get_gpmux(9)pruss_cfg_set_gpmux(9)pruss_cfg_miirt_enable(9)pruss_cfg_xfr_enable(9)
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
- 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