aspeed_gpio_copro_grab_gpio(9)
π aspeed_gpio_copro_grab_gpio(9)
okay bestie, welcome to the Kernel API Manual β this one's a little kernel-side baddie and honestly it's giving "don't touch my stuff" energy π«Ά
β¨ NAME β¨
aspeed_gpio_copro_grab_gpio β Mark a GPIO used by the coprocessor. Your girl is calling dibs π
The entire bank gets marked, and any access from the ARM will result in handshaking via callbacks. no cap, the whole bank. the ARM has to knock first now πͺβ¨
πΈ SYNOPSIS πΈ
int aspeed_gpio_copro_grab_gpio (struct gpio_desc *desc , u16
*vreg_offset , u16 *dreg_offset , u8 *bit );
like, that's the whole vibe right there β
π ARGUMENTS π
descβ The GPIO to be marked. the main character in question πvreg_offsetβ If non-NULL, returns the value register offset in the GPIO space. you pass a pointer, it hands you the offset π (only if it's non-NULL tho, respect the boundaries)dreg_offsetβ If non-NULL, returns the data latch register offset in the GPIO space. same deal, pointer in, offset out π¦bitβ If non-NULL, returns the bit number of the GPIO in the registers. yes, the actual bit β she's specific π₯
ngl, all three of those out-params are "if non-NULL" situations, so if you hand it a NULL you just get nothing back from that one. no drama, no crash implied, it's just skipped. iykyk π
π SEE ALSO π
- Kernel file
./drivers/gpio/gpio-aspeed.c aspeed_gpio_copro_set_ops(9)aspeed_gpio_copro_release_gpio(9)
like go read those too, they're literally the friend group of this function π
and that's the whole page, bestie! π§ this iconic little number lives in ./drivers/gpio and it's dated October 2026 β so yeah, it's from the future, 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