Skip to content

ConfigItem

Defined in: src/fs/configfs.ts:28

A directory in configfs, i.e. struct config_item.

new ConfigItem(name): ConfigItem

Defined in: src/fs/configfs.ts:39

string

ConfigItem

readonly attributes: Map<string, ConfigAttribute>

Defined in: src/fs/configfs.ts:34


readonly links: Set<ConfigLink>

Defined in: src/fs/configfs.ts:37

Symlinks pointing at this item. It can’t be removed while there are any.


readonly mode: number = 0o755

Defined in: src/fs/configfs.ts:29


name: string

Defined in: src/fs/configfs.ts:39


optional parent?: ConfigGroup

Defined in: src/fs/configfs.ts:32

The group this item is in, set when it is linked in

get path(): string

Defined in: src/fs/configfs.ts:42

The path of this item, relative to the root of configfs

string

_detachPrep(): void

Defined in: src/fs/configfs.ts:69

void


optional allow_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.

ConfigItem

void


create_attribute(name, show?, store?, mode?): ConfigAttribute

Defined in: src/fs/configfs.ts:102

string

((item) => string) | null

((item, value) => void) | null

number = ...

Defaults based on which of show and store were passed.

ConfigAttribute


detach(): void

Defined in: src/fs/configfs.ts:84

void


optional drop_link(target): void

Defined in: src/fs/configfs.ts:131

ct_item_ops->drop_link: a symlink into this item went away

ConfigItem

void


keys(): Iterable<string>

Defined in: src/fs/configfs.ts:52

Iterable<string>


link(parent): void

Defined in: src/fs/configfs.ts:56

ConfigGroup

void


lookup(name): ConfigEntry | undefined

Defined in: src/fs/configfs.ts:48

string

ConfigEntry | undefined


optional release(): void

Defined in: src/fs/configfs.ts:122

ct_item_ops->release: this item is gone, let go of whatever it was holding

void


unlink(): void

Defined in: src/fs/configfs.ts:61

void