Interface ModuleInfo

What a module file says about itself before it is run: the key=value lines of its leading comment block

interface ModuleInfo {
    alias: string[];
    author?: string[];
    depends: string[];
    description?: string;
    fields: [string, string][];
    kernelApi?: string;
    license?: string;
    name: string;
    parm: {
        description: string;
        name: string;
        type: "string" | "number" | "boolean";
    }[];
    version?: string;
}
Index
alias: string[]
author?: string[]
depends: string[]

Names of modules that must be loaded first

description?: string
fields: [string, string][]

Every line, for modinfo to print as written

kernelApi?: string

A semver range of the module API the module was written for

license?: string
name: string
parm: {
    description: string;
    name: string;
    type: "string" | "number" | "boolean";
}[]

name:type:description for each parameter the module takes

version?: string