zynq_gpio_is_zynq(9)
π
zynq_gpio_is_zynq(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β todayβs main character is zynq_gpio_is_zynq(9), and honestly? Itβs a tiny little vibe check for your hardware. No cap.
πΈ NAME πΈ
zynq_gpio_is_zynqβ the function that tests if the HW is zynq or zynqmp. literally its whole job π
β¨ SYNOPSIS β¨
int zynq_gpio_is_zynq (struct zynq_gpio *gpio );
π ARGUMENTS π
gpioβ Pointer to driver data struct. Thatβs the bestie you hand over so the function can do its thing π«Ά
π¦ RETURN π¦
It returns 0 if zynqmp, 1 if zynq. periodt. π
π₯ SEE ALSO π₯
The kernel file is ./drivers/gpio/gpio-zynq.c, and these are the linked faves you should also go read, fr fr:
struct zynq_gpio(9)struct zynq_platform_data(9)gpio_data_ro_bug(9)zynq_gpio_get_bank_pin(9)zynq_gpio_get_value(9)zynq_gpio_set_value(9)zynq_gpio_dir_in(9)zynq_gpio_dir_out(9)zynq_gpio_get_direction(9)zynq_gpio_irq_mask(9)zynq_gpio_irq_unmask(9)zynq_gpio_irq_ack(9)zynq_gpio_irq_enable(9)zynq_gpio_set_irq_type(9)zynq_gpio_irqhandler(9)zynq_gpio_probe(9)zynq_gpio_remove(9)
mwah π β source/version is ./drivers/gpio, dated October 2026. bye bestie, go slay that kernel code ππ
π¦ 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