We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 542a5cf + db5bbf9 commit db2c0abCopy full SHA for db2c0ab
exercise-book/src/building-linux-kernel-driver.md
@@ -555,8 +555,8 @@ to look.
555
[example code]: https://github.com/torvalds/linux/blob/v6.14/samples/rust/rust_misc_device.rs
556
557
To send an ioctl to your device, you can use this Rust program. You'll need to
558
-put it in a package (`cargo new --bin openfile`) and add the `nix` crate (`cargo
559
-add nix`).
+put it in a package (`cargo new --bin openfile`) and add the `nix` crate with
+`ioctl` feature enabled (`cargo add -F ioctl nix`).
560
561
```rust ignore
562
use std::os::fd::AsRawFd;
0 commit comments