Skip to content

io.systemd.Udev

An interface for controlling systemd-udevd.

Property Value
Go package github.com/rossedman/sdvarlink/systemd/latest/udev
Socket /run/udev/io.systemd.Udev
Available since systemd v258
Methods · types · errors 7 · 0 · 0

Methods

SetTrace

Enable/disable trace logging.

func (c *Client) SetTrace(ctx context.Context, in SetTraceIn) error

Parameters

Field Type Description
enable bool Enable/disable.

SetChildrenMax

Sets the maximum number of child processes.

func (c *Client) SetChildrenMax(ctx context.Context, in SetChildrenMaxIn) error

Parameters

Field Type Description
number int The maximum number of child processes. When 0 is specified, the maximum is determined based on the system resources.

SetEnvironment

Sets the global udev properties.

func (c *Client) SetEnvironment(ctx context.Context, in SetEnvironmentIn) error

Parameters

Field Type Description
assignments []string An array of global udev property assignments. Each string must be in KEY=VALUE style.

Revert

Revert previously set configurations.

func (c *Client) Revert(ctx context.Context) error

StartExecQueue

Starts processing of queued events.

func (c *Client) StartExecQueue(ctx context.Context) error

StopExecQueue

Stops processing of queued events.

func (c *Client) StopExecQueue(ctx context.Context) error

Exit

Terminates systemd-udevd. This exists for backward compatibility. Please consider to use 'systemctl stop systemd-udevd.service'.

func (c *Client) Exit(ctx context.Context) error