pinmux_gpio_direction(9)
π 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βtrueif we're setting the pin as input,falsefor output, no in-between, we don't do ambiguity here π
π₯ SEE ALSO π₯
- Kernel file
./drivers/pinctrl/pinmux.cβ literally the whole friend group lives here π«Ά pinmux_can_be_used_for_gpio(9)pin_request(9)pin_free(9)pinmux_request_gpio(9)pinmux_free_gpio(9)pinmux_generic_get_function_count(9)pinmux_generic_get_function_name(9)pinmux_generic_get_function_groups(9)pinmux_generic_get_function(9)pinmux_generic_function_is_gpio(9)pinmux_generic_add_function(9)pinmux_generic_add_pinfunction(9)pinmux_generic_remove_function(9)pinmux_generic_free_functions(9)
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
- 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