KernelParam
Defined in: src/module.ts:52
A module parameter, analogous to module_param or kernel_param on Linux.
Parameters are attributes, so they show up in /sys/module/<name>/parameters.
Type Parameters
Section titled “Type Parameters”T extends ParamValue = ParamValue
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KernelParam<
T>(module,name,init):KernelParam<T>
Defined in: src/module.ts:61
Parameters
Section titled “Parameters”module
Section titled “module”string
Returns
Section titled “Returns”KernelParam<T>
Properties
Section titled “Properties”_value
Section titled “_value”
protected_value:T
Defined in: src/module.ts:55
changed?
Section titled “changed?”
protectedreadonlyoptionalchanged?: (value,param) =>void
Defined in: src/module.ts:59
Parameters
Section titled “Parameters”T
KernelParam<T>
Returns
Section titled “Returns”void
readonlymode:number
Defined in: src/module.ts:53
Default
Section titled “Default”0o444Implementation of
Section titled “Implementation of”module
Section titled “module”
readonlymodule:Module
Defined in: src/module.ts:62
readonlyname:string
Defined in: src/module.ts:63
The name of the attribute, set when it is added to a kobject.
Implementation of
Section titled “Implementation of”
protectedreadonlytype: keyof{ [K in ParamType as ParamTypes[K] extends T ? K : never]: 0 }
Defined in: src/module.ts:57
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get value():
T
Defined in: src/module.ts:72
Returns
Section titled “Returns”T
Set Signature
Section titled “Set Signature”set value(
value):void
Defined in: src/module.ts:76
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
Methods
Section titled “Methods”show()
Section titled “show()”show():
string
Defined in: src/module.ts:81
Returns
Section titled “Returns”string
Implementation of
Section titled “Implementation of”store()
Section titled “store()”store(
text):void
Defined in: src/module.ts:85
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void