Collection of BPF socket filters for kernel events.
Line buffer for parsing HWDB on-disk file format.
Linux file-permission mode.
Represents the file path in the sys
filesystem.
Trie child entry in the hardware database.
Represents the full Trie entry in the HWDB.
On-disk trie objects
Trie node in the hardware database.
Trie value entry in the hardware database.
libudev context
Represents one kernel sys
device.
UDEV list entry.
Represents one device lookup/sort context..
Represents the on-disk hardware database.
Handles device event sources.
Represents a UDEV Netlink header.
Represents the current event queue in the udev daemon.
Represents an FFI type from fcntl.h
for a file_handle
.
Encodes a devnode
name, removing potentially dangerous characters.
Encodes provided string, removing potentially unsafe characters.
Gets the major part of the device number.
Gets the minor part of the device number.
MurmurHash2 was written by Austin Appleby, and is placed in the public
domain. The author hereby disclaims copyright to this source code.
Wrapper around a syscall that returns an opaque handle that corresponds to a specified file.
Gets a bunch of bit numbers out of the hash, and sets the bits into a bitfield.
Compute a MurMurHash over the provided string.
Parses a string from the HWDB buffer.
Gets the device action.
Gets the current tags list entry in the
UdevDevice.
Gets the device major/minor number.
Gets the kernel driver name.
Gets the next parent
UdevDevice based on
subsystem
and
devtype
.
Gets the value of a given property.
Gets the device event sequence number.
Gets the first entry in the sysattr
properties list.
Gets the sys attribute file value.
Gets the number of microseconds since the
UdevDevice was initialized.
Gets whether the
UdevDevice has the provided current
tag
associated.
Gets whether the
UdevDevice has the provided
tag
associated.
Create new udev device from the environment information.
Creates a new
UdevDevice from the subsystem and sysname.
Creates new
UdevDevice, and fills in information from the sys
device and the udev database entry.
Reads
UdevDevice information from the persistent database file.
Sets whether the match lists are initialized.
Sets the parent
UdevDevice on a given device tree.
Adds an entry to the match properties
UdevEntry list.
Adds an entry to the match subsystem
UdevEntry list.
Adds an entry to the match sysattr
UdevEntry list.
Adds an entry to the match sysname
UdevEntry list.
Adds an entry to the match tag
UdevEntry list.
Adds an entry to the no-match subsystem
UdevEntry list.
Adds an entry to the no-match sysattr
UdevEntry list.
Adds a devices to the list of devices.
Scan /sys
for devices which match the given filters.
Scans /sys
for all kernel subsystems.
Looks up a matching device in the hardware database.
Looks up a matching device modalias in the hardware database and returns the list of properties.
Looks up a specific matching property name (key) for device modalias
Helper function that iterates over every
UdevEntry in the list, applying the function to each
entry.
Helper function that iterates over every
UdevEntry in the list, applying the function to each
entry.
Gets a reference to the next entry in a
UdevList.
Gets a mutable reference to the next entry in a
UdevList.
Adds an
UdevEntry into the filter subsystem list.
Updates the monitor socket filter.
Creates a new
UdevMonitor from the provided parameters.
Sets the size of the kernel socket buffer.
Creates a new
Udev context.
Clears the watched file descriptor for queue changes.
Gets a file descriptor to watch for a queue to become empty.
Gets whether
UdevQueue is currently processing any events.
Gets a reference to the
Udev context.
Checks if
Udev is active on the system.
Encodes provided string, removing potentially unsafe characters.
Gets whether the provided character is whitelisted.