FIRST_ARG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to FIRST_ARG(9) β€” yep, that's the one from the Kernel API Manual πŸ’–βœ¨ this macro is short, sweet, and honestly kind of iconic.

🌸 NAME 🌸

FIRST_ARG β€” returns the first argument. That's the whole job. No cap. πŸ’…

✨ SYNOPSIS ✨

FIRST_ARG (args... );

πŸŽ€ ARGUMENTS πŸŽ€

  • args β€” arguments. that's the entire description, bestie, we love a low-effort legend 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This helper macro lets you manipulate the argument list before passing it on to the next-level macro. It's giving "tiny but powerful" energy, fr fr.

πŸ”₯ EXAMPLE πŸ”₯

#define foo     X,Y,Z,Q #define bar     FIRST_ARG(foo)

With the definitions above, bar expands to X. Slay. ⭐

πŸ‘‘ SEE ALSO πŸ‘‘


🫢 signed, sealed, and shipped β€” source/version: ./drivers/gpu/drm/xe, date: October 2026, page: FIRST_ARG(9) πŸ’–

πŸ“¦ where this page comes from