pinmux_gpio_direction(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pinmux_gpio_direction β€” like, the kernel API manual edition πŸŽ€

okay so bestie, welcome to pinmux_gpio_direction(9), the absolutely iconic little function that sets the direction of a single muxed-in GPIO pin ✨. That's it, that's the whole vibe. One pin. One direction. Main character energy only πŸ™ˆ.


✨ NAME ✨

pinmux_gpio_direction β€” set the direction of a single muxed-in GPIO pin πŸ¦‹


🌸 SYNOPSIS 🌸

int pinmux_gpio_direction (struct pinctrl_dev *pctldev , struct
       pinctrl_gpio_range *range , unsigned int pin , bool input );

like, yes it returns an int, and yes she takes four args β€” we'll get to those πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • pctldev β€” the pin controller that's handling this pin, aka the queen in charge of the whole situation πŸ‘‘
  • range β€” the applicable GPIO range, iykyk, it's the little neighborhood our pin lives in 🏑
  • pin β€” the affected GPIO pin in this controller, the actual star of the show ⭐
  • input β€” true if we're setting the pin as input, false for output, no in-between, we don't do ambiguity here πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

go read them, they ate πŸ’€βœ¨


ngl, keep the whole pinctrl squad in your bookmarks β€” they're all lowkey obsessed with pins and honestly same 🌈

and that's the page, bestie!! πŸ’œ this little gem comes to you from ./drivers/pinctrl, dated October 2026, and it's filed under pinmux_gpio_direction(9) in case you ever need to find her again πŸŽ€πŸ¦‹πŸ’– slay!!

πŸ“¦ where this page comes from