Skip to content

drm_os_freebsd: expose DRM minor type via dev.drm.N.type sysctl#482

Open
Defenso-QTH wants to merge 1 commit into
freebsd:masterfrom
Defenso-QTH:freebsd-drm-minor-type-sysctl
Open

drm_os_freebsd: expose DRM minor type via dev.drm.N.type sysctl#482
Defenso-QTH wants to merge 1 commit into
freebsd:masterfrom
Defenso-QTH:freebsd-drm-minor-type-sysctl

Conversation

@Defenso-QTH

Copy link
Copy Markdown

Add a "type" integer child to the dev.drm.N sysctl node to expose whether the minor is a primary (DRM_MINOR_PRIMARY == 0) or render (DRM_MINOR_RENDER == 2) node.

This enables consumers like libdrm to obtain minor type information even in a jail where the device nodes are not accessible through devfs.

Sponsored by: Defenso

Add a "type" integer child to the dev.drm.N sysctl node to expose whether the
minor is a primary (DRM_MINOR_PRIMARY == 0) or render (DRM_MINOR_RENDER == 2)
node.

This enables consumers like libdrm to obtain minor type information even in a
jail where the device nodes are not accessible through devfs.

Sponsored by: Defenso

Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
@Defenso-QTH

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant