44 ms·
How does this /dev/printerfacts react to partial reads? Does it mix multiple facts?
by Grollicus 5y ago
How does this /dev/printerfacts react to partial reads? Does it mix multiple facts?
- xena 5y agoIf your buffer is too small it will just fail. It ends the file after a fact is returned. I think I forgot to shout that out in the article. Oops.
- Grollicus 5y agoAh yes because `write_slice` fails. That's actually nice and quite ergonomic with the ?. Well, thanks for the quick intro for how to actually use this new rust-in-kernel stuff and also for showing how to easily test it with nix. That's a great article, so thank you for sharing!