entry_invocation_flags(9)
π entry_invocation_flags(9) β the girlies' guide to the Kernel API Manual β¨
okay so bestie, this is a page from the Kernel API Manual, section 9, and it's all about entry_invocation_flags β the invocation flags that are in effect for this exec. no cap, that's the whole NAME section, we're moving. π
β¨ SYNOPSIS β¨
unsigned long entry_invocation_flags (const struct binfmt_misc_entry *e
, struct linux_binprm *bprm );
like, it takes two things and gives you back an unsigned long. that's it. that's the vibe. π¦
πΈ ARGUMENTS πΈ
eβ the matched binary type handler, aka the one who got picked for this exec. main character energy fr. πbprmβ the binary that is being executed. the actual thing going vroom. π₯
π DESCRIPTION π
so here's the tea β: a static entry locks in its flags at registration time. done. frozen. it said "this is who i am" and never looked back. periodt.
but a 'B' entry? different story entirely. its load program gets to pick the flags per exec using bpf_binprm_set_flags. so it's out here choosing fresh every single time. iconic, honestly. β¨
and what this function does is translate that latter situation into the former β implications included, no skipping the fine print β so that the dispatch has one single set of flags to act on. one set. one vibe. one truth. π
lowkey it's just making sure everybody's on the same page before the dispatch does its thing. π«Ά
β RETURN β
the invocation flags for this exec. π that's it, that's the return value, go off.
π SEE ALSO π
the whole friend group, gathered for you π«Ά β starting with the Kernel file ./fs/binfmt_misc.c, then:
struct binfmt_misc_flag(9)search_binfmt_handler(9)get_binfmt_handler(9)binfmt_misc_find_interp(9)entry_attach_interpreter(9)put_binfmt_handler(9)current_binfmt_misc(9)entry_select_interpreter(9)entry_open_interpreter(9)build_interp_argv(9)i_binfmt_misc(9)bm_evict_inode(9)unlink_binfmt_handler(9)remove_binfmt_handler(9)bm_unlink(9)bm_entry_add_interp(9)
ngl bestie, if you're reading this page you're already deep in ./fs territory. iykyk. π
and that's the whole page! π big kisses from ./fs, dated October 2026 β that's where this little beauty lives and when it was stamped. go forth and read your flags, you absolute icon ππ§ββοΈ
π¦ 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