STRUCT MODULE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct module(9) ✨

okay bestie, this is the Kernel API Manual page for struct module β€” literally the vibe that represents a module (vmlinux or *.ko). no cap, every field and every note is staying, so let’s go πŸ’…


πŸ’– NAME πŸ’–

struct module β€” represent a module (vmlinux or *.ko)


✨ SYNOPSIS ✨

       struct module {
           struct list_head list;
           struct list_head exported_symbols;
           struct list_head unresolved_symbols;
           const char *dump_file;
           bool is_gpl_compatible;
           bool is_vmlinux;
           bool seen;
           bool has_init;
           bool has_cleanup;
           char srcversion[25];
           struct list_head missing_namespaces;
           struct list_head imported_namespaces;
           struct list_head aliases;
           char *no_trim_symbol;
           unsigned int no_trim_symbol_len;
           char name[];
        };

πŸŽ€ Members πŸŽ€

these are the member notes, bestie β€” short, sweet, and factual:

  • dump_file β€” path to the .symvers file if loaded from a file
  • aliases β€” list head for module_aliases
  • no_trim_symbol β€” .no_trim_symbol section data
  • no_trim_symbol_len β€” length of the .no_trim_symbol section

🌈 SEE ALSO 🌈

  • Kernel file ./scripts/mod/modpost.h
  • struct module_alias(9)

source/version: ./scripts/mod Β· date: October 2026 β€” mwah, bestie πŸ’‹πŸŽ€

πŸ“¦ where this page comes from