Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm-ffi: Accept BorrowedFd arguments instead of RawFd #174

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Oct 18, 2023

This should make these functions safe, instead of technically violating IO safety rules as they currently do. (I can't say for sure there aren't other safety concerns with any of the ioctls, but this should be better anyway.)

This will be needed in drm-ffi switches to using rustix for ioctl calls.

This should make these functions safe, instead of technically violating
IO safety rules as they currently do. (I can't say for sure there aren't
other safety concerns with any of the ioctls, but this should be better
anyway.)

This will be needed in `drm-ffi` switches to using `rustix` for ioctl
calls.
Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Drakulix Drakulix merged commit 33a87a0 into Smithay:develop Oct 18, 2023
14 checks passed
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.

2 participants