gpio_request_one(9)
β¨ gpio_request_one β¨
okay bestie, so this one is from the Kernel API Manual (section 9, we love a kernel function moment π
) and it's literally called gpio_request_one β iconic name, honestly.
πΈ NAME πΈ
gpio_request_one β request a single GPIO with initial configuration π
π¦ SYNOPSIS π¦
int gpio_request_one (unsigned gpio , unsigned long flags , const char *label );
π ARGUMENTS π
gpioβ the GPIO number, like which one are we talking about bestie πflagsβ the GPIO configuration, as specified byGPIOF_*(yes, that whole family β¨)labelβ a literal description string of this GPIO, so everyone knows what it is π·οΈ
π₯ DESCRIPTION π₯
β οΈ DEPRECATED β οΈ
not me having to tell you this but: this function is deprecated and must not be used in new code. like, fr fr, do not. it's giving legacy energy π
π RETURN π
0 on success, or a negative errno on failure. that's it, that's the vibe check π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpio/gpiolib-legacy.c devm_gpio_request_one(9)β the one you probably actually want, iykyk π
and that's the whole page bestie, no cap π§ from ./drivers/gpio, dated October 2026, in the Kernel API Manual β slay, 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