diff options
author | sghctoma <sghctoma@gmail.com> | 2018-09-07 16:37:25 +0200 |
---|---|---|
committer | sghctoma <sghctoma@gmail.com> | 2018-09-07 16:37:25 +0200 |
commit | 7a5d3c4d3bf8c2f21fcec65182f1563f4c857408 (patch) | |
tree | 4fd3777452ffeb1e31c9c372725dff059d7bfa94 /rootston/main.c | |
parent | bbeed1bd3179a082b5bfb04010e6c476e75e4320 (diff) |
Implement device type discovery using ioctl calls
This commit implements device type discovery by calling two ioctls
(DRM_IOCTL_VERSION and EVIOCGVERSION) on the device. These iocts are
specific to drm and input devices respectively, therefore we can
determine the device type based on which one returns an error.
Diffstat (limited to 'rootston/main.c')
0 files changed, 0 insertions, 0 deletions