FIRST_ARG(9)
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 π
- Kernel file:
./drivers/gpu/drm/xe/xe_args.h CALL_ARGS(9)DROP_FIRST_ARG(9)LAST_ARG(9)PICK_ARG(9)IF_ARGS(9)ARGS_SEP_COMMA(9)
π«Ά signed, sealed, and shipped β source/version: ./drivers/gpu/drm/xe, date: October 2026, page: FIRST_ARG(9) π
π¦ 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