Skip to content
Commit d5cf3f98 authored by Jonathan Gray's avatar Jonathan Gray Committed by Emil Velikov
Browse files

xf86drm: adjust device node path for minor base



When constructing a path to a device node the minor number retrieved
from fstat needs to have the offset of the node type subtracted from it.
Control and render node types have the same major as the primary node
but each has their own block of minor types at fixed offsets.

v2: remove min < base test as requested by Emil

Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarJonathan Gray <jsg@jsg.id.au>
parent e3af5368
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment