build_interp_argv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to build_interp_argv(9) β€” yes, that's the name, and this whole page is living in the Kernel API Manual. It's literally the function that splices the interpreter invocation into the argv. slay. ✨

✨ SYNOPSIS ✨

int build_interp_argv (struct linux_binprm *bprm , const char
       *interpreter , unsigned long flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • bprm β€” the binary that is being executed. main character binary energy, honestly.
  • interpreter β€” the interpreter selected for this exec. the chosen one πŸ’…
  • flags β€” invocation flags in effect for this exec. all the flag vibes, gathered for this exact exec.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: the interpreter becomes argv[0] and the binary becomes its last argument, with an optional staged argument in between. cute, right? the caller's argv[0] is dropped unless 'P' keeps it. that's the whole vibe β€” no cap. πŸ’–

🌸 RETURN 🌸

0 on success, and a negative error code on failure. periodt. πŸ’…

🌈 SEE ALSO 🌈


kisses and kernel crumbs πŸ“ β€” this page comes from source ./fs, dated October 2026. bye bestie, go splice something iconic ✨🫢

πŸ“¦ where this page comes from