This morning I learned that using ioctl() from rust is really really hard! Rust uses macros to dynamically generate ioctl-specific getter/setter functions ... but it assumes that the size in the signature of the ioctl is the same as the size of the data-type to be passed.
-
-
I ran across something similar while doing some rust embedded work. These folks have some nice code: http://bit.ly/2KyHKfe
-
I ended up going down to libc::ioctl() and manually crafting the signature with request_code_write(). Not too ugly in the end, just a journey to get there!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.