Files
serenity/Base/etc/DeviceMapper.ini
Liav A. a5bc15355d DeviceDeviceMapper: Remove hardcoded list of pluggable once devices
Instead, simplify things by allowing the user to specify a specific
device entry in the configuration file, by specifying a minor number.

The first example of such device is the /dev/beep, as it resides on the
"generic" device node family (as it has a major number of 1).

However, because it can be skipped (if the user disables the beep device
through a kernel commandline option), we can't just create it blindly.
Therefore, when iterating on the configuration file the DeviceMapper
code detects the entry has a specific minor number of 10, and creates
a special DeviceNodeMatch (with a specific minor number being included).
When an event from /dev/devctl that notifies on the existence of the
/dev/beep device arrives, we find this specific match and don't create
an actual DeviceNodeFamily object, but rather blindly create a device
node.Mapper: Remove the concept of pluggable once devices
2024-07-12 18:44:49 -04:00

81 lines
1.3 KiB
INI

[Audio]
Name=audio
DevTmpFSPath=audio/%d
Type=CharacterDevice
MajorNumber=116
GroupPermissions=audio
CreatePermissions=0220
[GPURender]
Name=gpu-render
DevTmpFSPath=gpu/render%d
Type=CharacterDevice
MajorNumber=28
GroupPermissions=root
CreatePermissions=0666
[GPUDisplayConnector]
Name=gpu
DevTmpFSPath=gpu/connector%d
Type=CharacterDevice
MajorNumber=226
GroupPermissions=window
CreatePermissions=0660
[VirtIOConsole]
Name=virtio-console
DevTmpFSPath=hvc0p%d
Type=CharacterDevice
MajorNumber=229
GroupPermissions=root
CreatePermissions=0666
[HIDMouse]
Name=mouse
DevTmpFSPath=input/mouse/%d
Type=CharacterDevice
MajorNumber=10
GroupPermissions=phys
CreatePermissions=0660
[HIDKeyboard]
Name=keyboard
DevTmpFSPath=input/keyboard/%d
Type=CharacterDevice
MajorNumber=85
GroupPermissions=phys
CreatePermissions=0660
[StorageDevice]
Name=storage
DevTmpFSPath=hd%c
Type=BlockDevice
MajorNumber=3
GroupPermissions=phys
CreatePermissions=0660
[VirtualConsole]
Name=console
DevTmpFSPath=tty%d
Type=CharacterDevice
MajorNumber=35
GroupPermissions=tty
CreatePermissions=0620
[SerialConsole]
Name=serial
DevTmpFSPath=ttyS%d
Type=CharacterDevice
MajorNumber=4
GroupPermissions=tty
CreatePermissions=0620
[BeepDevice]
Name=beep
DevTmpFSPath=beep
Type=CharacterDevice
MajorNumber=1
MinorNumber=10
GroupPermissions=root
CreatePermissions=0666