ConfigGroup
Defined in: src/fs/configfs.ts:137
An item that can hold other items, i.e. struct config_group.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConfigGroup(
name):ConfigGroup
Defined in: src/fs/configfs.ts:39
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ConfigGroup
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”attributes
Section titled “attributes”
readonlyattributes:Map<string,ConfigAttribute>
Defined in: src/fs/configfs.ts:34
Inherited from
Section titled “Inherited from”children
Section titled “children”
readonlychildren:Map<string,ConfigItem|ConfigLink>
Defined in: src/fs/configfs.ts:138
default_groups
Section titled “default_groups”
readonlydefault_groups:Set<ConfigGroup>
Defined in: src/fs/configfs.ts:141
Children the kernel made, which userspace can’t rmdir. This is default_groups.
readonlylinks:Set<ConfigLink>
Defined in: src/fs/configfs.ts:37
Symlinks pointing at this item. It can’t be removed while there are any.
Inherited from
Section titled “Inherited from”
readonlymode:number=0o755
Defined in: src/fs/configfs.ts:29
Inherited from
Section titled “Inherited from”name:
string
Defined in: src/fs/configfs.ts:39
Inherited from
Section titled “Inherited from”parent?
Section titled “parent?”
optionalparent?:ConfigGroup
Defined in: src/fs/configfs.ts:32
The group this item is in, set when it is linked in
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get path():
string
Defined in: src/fs/configfs.ts:42
The path of this item, relative to the root of configfs
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”_detachPrep()
Section titled “_detachPrep()”_detachPrep():
void
Defined in: src/fs/configfs.ts:69
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”addDefaultGroup()
Section titled “addDefaultGroup()”addDefaultGroup(
child):void
Defined in: src/fs/configfs.ts:151
Parameters
Section titled “Parameters”ConfigGroup
Returns
Section titled “Returns”void
allow_link()?
Section titled “allow_link()?”
optionalallow_link(target):void
Defined in: src/fs/configfs.ts:128
ct_item_ops->allow_link: something is about to be symlinked into this item.
Throw to refuse; an item without this can’t be linked into at all.
Parameters
Section titled “Parameters”target
Section titled “target”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”create_attribute()
Section titled “create_attribute()”create_attribute(
name,show?,store?,mode?):ConfigAttribute
Defined in: src/fs/configfs.ts:102
Parameters
Section titled “Parameters”string
((item) => string) | null
store?
Section titled “store?”((item, value) => void) | null
number = ...
Defaults based on which of show and store were passed.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”detach()
Section titled “detach()”detach():
void
Defined in: src/fs/configfs.ts:84
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”disconnect_notify()?
Section titled “disconnect_notify()?”
optionaldisconnect_notify(item):void
Defined in: src/fs/configfs.ts:191
ct_group_ops->disconnect_notify, called before the item is unlinked
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
drop_item()?
Section titled “drop_item()?”
optionaldrop_item(item):void
Defined in: src/fs/configfs.ts:194
ct_group_ops->drop_item: userspace ran rmdir
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
drop_link()?
Section titled “drop_link()?”
optionaldrop_link(target):void
Defined in: src/fs/configfs.ts:131
ct_item_ops->drop_link: a symlink into this item went away
Parameters
Section titled “Parameters”target
Section titled “target”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”findItem()
Section titled “findItem()”findItem(
name):ConfigItem|undefined
Defined in: src/fs/configfs.ts:179
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ConfigItem | undefined
keys()
Section titled “keys()”keys():
Iterable<string>
Defined in: src/fs/configfs.ts:147
Returns
Section titled “Returns”Iterable<string>
Overrides
Section titled “Overrides”link()
Section titled “link()”link(
parent):void
Defined in: src/fs/configfs.ts:56
Parameters
Section titled “Parameters”parent
Section titled “parent”ConfigGroup
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”lookup()
Section titled “lookup()”lookup(
name):ConfigEntry|undefined
Defined in: src/fs/configfs.ts:143
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ConfigEntry | undefined
Overrides
Section titled “Overrides”make_group()?
Section titled “make_group()?”
optionalmake_group(name):ConfigGroup
Defined in: src/fs/configfs.ts:188
ct_group_ops->make_group, tried before make_item the way Linux tries it
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ConfigGroup
make_item()?
Section titled “make_item()?”
optionalmake_item(name):ConfigItem
Defined in: src/fs/configfs.ts:185
ct_group_ops->make_item: userspace ran mkdir. Throw to refuse.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”registerGroup()
Section titled “registerGroup()”registerGroup(
group):void
Defined in: src/fs/configfs.ts:161
Parameters
Section titled “Parameters”ConfigGroup
Returns
Section titled “Returns”void
registerSubsystem()
Section titled “registerSubsystem()”registerSubsystem():
void
Defined in: src/fs/configfs.ts:169
Put a subsystem at the top level of configfs, i.e. /sys/kernel/config/<name>.
Returns
Section titled “Returns”void
release()?
Section titled “release()?”
optionalrelease():void
Defined in: src/fs/configfs.ts:122
ct_item_ops->release: this item is gone, let go of whatever it was holding
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”removeDefaultGroups()
Section titled “removeDefaultGroups()”removeDefaultGroups():
void
Defined in: src/fs/configfs.ts:157
Returns
Section titled “Returns”void
unlink()
Section titled “unlink()”unlink():
void
Defined in: src/fs/configfs.ts:61
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”unregisterSubsystem()
Section titled “unregisterSubsystem()”unregisterSubsystem():
void
Defined in: src/fs/configfs.ts:174
Returns
Section titled “Returns”void