ath5k_hw_set_gpio_input(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ath5k_hw_set_gpio_input β€” bestie's guide to flipping a GPIO pin into input mode ✨

okay so this page is from the Kernel API Manual (section 9, the kernel-API girlies), and it's all about ONE tiny function that quietly does a very specific thing. no cap, it's short, but we're gonna treat it with the respect it deserves πŸŽ€


🌸 NAME 🌸

ath5k_hw_set_gpio_input β€” Set GPIO inputs πŸ¦‹

like, literally. that's the whole job. it sets GPIO inputs. iconic, concise, no notes πŸ’…


✨ SYNOPSIS ✨

int ath5k_hw_set_gpio_input (struct ath5k_hw *ah , u32 gpio );

that's the whole signature, copy it exactly, don't be cute with it πŸ™ˆ (i mean, be cute with everything else, just not the code)


🫢 ARGUMENTS 🫢

  • ah β€” The struct ath5k_hw. this is your main character struct, the ath5k hardware handle itself πŸ‘‘ everything happens through her.
  • gpio β€” GPIO pin to set as input. a u32 telling the function which pin is getting the input glow-up ⭐

two args. that's it. we love a low-effort queen πŸ”₯

ngl, this page is short because the function is short. don't go looking for a RETURN VALUE section β€” the original doesn't have one, and i'm not about to invent lore πŸ’€

🌈 SEE ALSO 🌈

the friend group, in order, fr fr:

  • Kernel file ./drivers/net/wireless/ath/ath5k/gpio.c GPIO/LED functions(9) β€” the source file she lives in, and her whole GPIO/LED function crew πŸ’–
  • ath5k_hw_set_ledstate(9)
  • ath5k_hw_set_gpio_output(9)
  • ath5k_hw_get_gpio(9)
  • ath5k_hw_set_gpio(9)
  • ath5k_hw_set_gpio_intr(9)

literally the entire gpio.c squad. go read them too, iykyk 🧚


πŸŽ€ cute sign-off πŸŽ€

and that's the page bestie!! this little number comes to you from ./drivers/net/wireless/ath/ath5k, dated October 2026, and it's filed under ath5k_hw_set_gpio_input(9) β€” go set some inputs, slay, periodt πŸ’œπŸŒΈ

πŸ“¦ where this page comes from