ModuleKObject
Defined in: src/module.ts:99
The kobject for a module, i.e. /sys/module/<name>.
Like on Linux, drivers and parameters are only created once something goes in them.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModuleKObject(
module):ModuleKObject
Defined in: src/module.ts:103
Parameters
Section titled “Parameters”module
Section titled “module”Returns
Section titled “Returns”ModuleKObject
Overrides
Section titled “Overrides”Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
Map<string,Attribute>
Defined in: src/kobject.ts:21
These attributes use the kobject’s show and store.
Inherited from
Section titled “Inherited from”children
Section titled “children”children:
Map<string,KEntry>
Defined in: src/kobject.ts:16
Inherited from
Section titled “Inherited from”holders
Section titled “holders”
readonlyholders:KObject
Defined in: src/module.ts:101
/sys/module/<name>/holders, which has a link for every module using this one
module
Section titled “module”
readonlymodule:Module
Defined in: src/module.ts:103
name:
string
Defined in: src/kobject.ts:24
Inherited from
Section titled “Inherited from”parent?
Section titled “parent?”
optionalparent?:KObject|null
Defined in: src/kobject.ts:25
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”drivers
Section titled “drivers”Get Signature
Section titled “Get Signature”get drivers():
KObject
Defined in: src/module.ts:111
/sys/module/<name>/drivers
Returns
Section titled “Returns”parameters
Section titled “parameters”Get Signature
Section titled “Get Signature”get parameters():
KObject
Defined in: src/module.ts:119
/sys/module/<name>/parameters
Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get path():
string
Defined in: src/kobject.ts:34
The path of this kobject, relative to the root of sysfs.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”[dispose]()
Section titled “[dispose]()”[dispose]():
void
Defined in: src/kobject.ts:72
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”add_uevent_attr()
Section titled “add_uevent_attr()”add_uevent_attr():
void
Defined in: src/kobject.ts:115
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”create_attribute()
Section titled “create_attribute()”create_attribute(
name,show?,store?,mode?):Attribute
Defined in: src/kobject.ts:132
Parameters
Section titled “Parameters”string
((kobj) => string) | null
store?
Section titled “store?”((kobj, value) => void) | null
number = ...
Defaults based on which of show and store were passed.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”dispose()
Section titled “dispose()”dispose():
void
Defined in: src/kobject.ts:64
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”keys()
Section titled “keys()”keys():
Iterable<string>
Defined in: src/kobject.ts:60
The names of everything in this kobject.
Returns
Section titled “Returns”Iterable<string>
Inherited from
Section titled “Inherited from”lookup()
Section titled “lookup()”lookup(
name):KEntry|undefined
Defined in: src/kobject.ts:44
Resolve a single entry by name.
Attributes that use this kobject’s show and store are bound before being returned.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”KEntry | undefined
Inherited from
Section titled “Inherited from”notify_uevent()
Section titled “notify_uevent()”notify_uevent(
action,env?):void
Defined in: src/kobject.ts:82
Notify listeners that something happened to kobj.
Parameters
Section titled “Parameters”action
Section titled “action”"add" | "remove" | "change" | "move" | "online" | "offline" | "bind" | "unbind"
UEventEnv = {}
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”send_uevent()
Section titled “send_uevent()”send_uevent(
text):void
Defined in: src/kobject.ts:100
Send a uevent described by text, an action optionally followed by KEY=VALUE pairs.
This is what writing to a uevent attribute does.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”show()?
Section titled “show()?”
optionalshow(attr):string
Defined in: src/kobject.ts:76
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”store()?
Section titled “store()?”
optionalstore(attr,value):void
Defined in: src/kobject.ts:77
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”uevent()?
Section titled “uevent()?”
optionaluevent(env):void
Defined in: src/kobject.ts:127
Add variables to the environment of uevents sent for this kobject and its descendants.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
notify_uevent