pruss_cfg_set_gpmux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pruss_cfg_set_gpmux(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and let me tell you, this little function is the "set the vibe" of PRU muxing. It's literally here to set the GPMUX value for a PRU device. That's the whole assignment, and it ate. ✨


✨ NAME ✨

pruss_cfg_set_gpmux β€” set the GPMUX value for a PRU device πŸ¦‹


🌸 SYNOPSIS 🌸

int pruss_cfg_set_gpmux (struct pruss *pruss , enum pruss_pru_id pru_id , u8 mux );

no cap, that's the exact signature, character for character, so don't be out here "fixing" the spacing πŸ’€


🧚 ARGUMENTS 🧚

  • pruss β€” the pruss instance, aka your main character. this is the whole PRU subsystem babe, you gotta hand it over 🫢
  • pru_id β€” the PRU identifier, range (0-1). yes, just those two, it's giving "pick a lane" πŸ’…
  • mux β€” the new mux value for the PRU. this is you deciding what that pin is gonna be when it grows up 🌈

πŸ”₯ RETURN πŸ”₯

0 on success, or an error code otherwise. that's it, that's the tea. check it, don't ignore it, iykyk 😭


πŸ‘‘ SEE ALSO πŸ‘‘

like, the whole friend group honestly πŸ’œ go read them, they're iconic.


ngl bestie, if you're out here setting mux values without checking the return, that's not slay behaviour, that's a future bug report πŸ’€

and that's the page! brought to you from ./drivers/soc/ti, stamped October 2026, and obviously it's pruss_cfg_set_gpmux(9) β€” periodt πŸ’–πŸŽ€

πŸ“¦ where this page comes from