Colm MacCárthaigh Retweeted Colm MacCárthaigh
Just to pay it forward, here's a solved Rust example of using ioctl() to add entropy to the linux kernel's RNG. Line 56 of https://gist.github.com/colmmacc/034f86227cfb0f8ec34193fd56ed78e8 …https://twitter.com/colmmacc/status/1196886380145565696 …
Colm MacCárthaigh added,
Colm MacCárthaigh @colmmacc
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.
Show this thread
9:58 AM - 21 Nov 2019
0 replies
0 retweets
6 likes
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.