-
Notifications
You must be signed in to change notification settings - Fork 666
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
Additional examples for ioctl #573
Comments
Since you've already figured out how to use ioctl for |
@beamspease Just wanted to ping you on this. Would love to get your examples into our documentation. |
I'm not sure what You can see here that it's a read ioctl. Meaning the ioctl will return stuff to us. From this, we know the ioctl should be written like so : /// Get block device soft block size
ioctl!(read blkbszget with 0x12; 112; size_t) |
I'd love to get this written up as a proper example. Something like.
|
@beamspease Could you check out #670 and let me know if that would be in line with what you'd like in the docs for |
670: Improve ioctl docs r=asomers Integrates suggestions and comments made in #641. Basically we hid a lot of the internal workings of things and also revised the docs to make it more clear the exact API that `nix` is exposing. There is a small amount of code cleanup I did in the macros. I also fixed the `bad` version of the `ioctl!` macro and also added a `bad none` version for use with no-data, hardcoded-number `ioctl`s. Would appreciate any and all feedback. Please especially fetch this code locally and generate the pretty docs for it (`cargo doc --no-deps --open`) so you can see what our users will see. Closes #641. Closes #573. cc @cmr @roblabla
Some additional examples for ioctl would be very helpful. It's taken me a bit to figure out how I'm supposed to do BLKSZGET. Thanks.
The text was updated successfully, but these errors were encountered: