DFL_FPGA_POR..._GET_IRQ_NUM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ DFL_FPGA_PORT_UINT_GET_IRQ_NUM(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's a lil ioctl macro and she's honestly serving main character energy in like three lines of code. let's get into it 🫢


🌸 NAME 🌸

DFL_FPGA_PORT_UINT_GET_IRQ_NUM β€” literally a macro that expands to _IOR(DFL_FPGA_MAGIC, DFL_PORT_BASE + 7, __u32 num_irqs)

like, that's the whole thing. she's a one-liner icon πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

DFL_FPGA_PORT_UINT_GET_IRQ_NUM

no args, no drama, just vibes ✨


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ“ β€” this macro is how you get the number of irqs supported by the fpga AFU interrupt private feature. that's it. that's the whole job. she counts irqs and she does it flawlessly, no cap πŸ’…


🌈 RETURN 🌈

  • 0 β€” success, slay, we ate πŸŽ€
  • -errno β€” failure 😭 (the negative errno tells you what went wrong, iykyk)

πŸ‘‘ SEE ALSO πŸ‘‘

first up, the kernel file where all the good stuff lives:

  • ./include/uapi/linux/fpga-dfl.h

and then the whole friend group 🫢:

fr fr, go read them, they're all iconic in their own way πŸ”₯


πŸ’€ friendly reminder: this is kernel UAPI territory, so those numbers and the DFL_FPGA_MAGIC / DFL_PORT_BASE + 7 values are load-bearing. don't be out here changing them, bestie, that's how you break userspace πŸ™ˆ

and that's the page!! brought to you by ./include/uapi/linux, dated October 2026 β€” mwah, catch you in the next manpage πŸ’œπŸ§šβ€β™€οΈπŸŒŸ

πŸ“¦ where this page comes from