Skip to content

ModuleInit

Defined in: src/module.ts:125

optional author?: string | string[]

Defined in: src/module.ts:131


optional description?: string

Defined in: src/module.ts:130


optional exit?: (this) => void | Promise<void>

Defined in: src/module.ts:139

Called when the module is unloaded

Module

void | Promise<void>


optional init?: (this) => void | Promise<void>

Defined in: src/module.ts:137

Called when the module is loaded. If this throws, the module isn’t loaded.

Module

void | Promise<void>


optional license?: string

Defined in: src/module.ts:129


name: string

Defined in: src/module.ts:126


optional params?: Record<string, KernelParamInit<ParamValue>>

Defined in: src/module.ts:133

Parameters exposed in /sys/module/<name>/parameters


optional srcversion?: string

Defined in: src/module.ts:128


optional taints?: Iterable<"P" | "F" | "C" | "E" | "O", any, any>

Defined in: src/module.ts:135

Taint flags to apply when the module is loaded


optional version?: string

Defined in: src/module.ts:127