aspeed_gpio_copro_grab_gpio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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