If you just run udevadm test-builtin --help
it'll list the builtin commands along with a short description for each of them:
udevadm test-builtin --help
udevadm test-builtin [OPTIONS] COMMAND DEVPATH
Test a built-in command.
-h --help Print this message
-V --version Print version of the program
Commands:
blkid Filesystem and partition probing
btrfs btrfs volume management
hwdb Hardware database
input_id Input device properties
keyboard Keyboard scan code to key mapping
kmod Kernel module loader
net_id Network device properties
net_setup_link Configure network link
path_id Compose persistent device path
usb_id USB device properties
uaccess Manage device node user ACL
Unfortunately, as you've noticed, builtins usage is only explained briefly in the manual.
A practical example can be found in the file 50-udev-default.rules
available on your system (under /lib/udev/rules.d/
) which contains stuff like:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"