xgpio_probe(9)
π xgpio_probe(9) β Kernel API Manual β¨
okay so bestie, welcome to xgpio_probe from the Kernel API Manual π this is the little function that shows up when the kernel is like "hey, is there actually a GPIO device here or are you lying to me" and it's literally the moment of truth. main character energy fr.
πΈ NAME πΈ
xgpio_probe β the probe method for the GPIO device, periodt π
So like, when the driver framework wants to know if a GPIO device is real and ready to be claimed, this is the function it calls. It's giving first-day-of-school vibe check π¦
β¨ SYNOPSIS β¨
int xgpio_probe (struct platform_device *pdev );
ngl copy that exactly as written, that stray space before the closing paren is iconic and we're not touching it π
π«Ά ARGUMENTS π«Ά
pdevβ pointer to the platform device π that's it, that's the whole argument list, one (1) pointer to astruct platform_device, and it's the device your function is being asked to probe. slay.
π₯ RETURN π₯
It returns 0 if the driver is bound to the GPIO device π β like, everything's official, we're committed, matching bracelets and all π«Ά
Or it returns a negative value if there's an error π β so if you see a negative number coming back, that's the "nope, didn't work" signal. Keep that in mind when you're checking the result, okay? Don't ignore it bestie.
π¦ SEE ALSO π¦
Take a little field trip, iykyk β the kernel file lives at ./drivers/gpio/gpio-xilinx.c and you should definitely go look at it, along with all of these:
struct xgpio_instance(9)xgpio_get(9)xgpio_set(9)xgpio_set_multiple(9)xgpio_dir_in(9)xgpio_dir_out(9)xgpio_save_regs(9)xgpio_remove(9)xgpio_irq_ack(9)xgpio_irq_mask(9)xgpio_irq_unmask(9)xgpio_set_irq_type(9)xgpio_irqhandler(9)
Go read them all, they're all part of the same friend group π
π reminder: the whole crew lives under ./drivers/gpio β that's the neighborhood.
and that's the whole page bestie!! π this one came from the ./drivers/gpio source, dated October 2026 β historical document, iconic era, no cap πβ¨ see you in the next one ππ¦
π¦ 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