-
Notifications
You must be signed in to change notification settings - Fork 644
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
Can't use ioctl with media_device_info, result is always ENOTTY #1386
Comments
Have you looked at the tests in Nix's test/sys/test_ioctl.rs directory? |
|
I don't know if is related but when implement usbapi crate I noticed that I could now use standard macros in nix and implemented ioctl_readwrite_ptr and ioctl_read_ptr. Full code here https://gitlab.com/mike7b4/usbapi-rs/-/blob/master/src/os/linux/usbfs.rs snippets:
|
You're opening the wrong device. Try As a side note, you shouldbe using @patrickelectric did you continue working on the code? Media interface would be useful to have. |
I'm going to close the issue, on the assumption that the OP figured his problem out. |
I have lost some time already trying to figure out how to use ioctl with nix, but until now I couldn't get it work.
Is there any documentation with examples that could help ?
From what I read this could is correct and should work.
The text was updated successfully, but these errors were encountered: