Skip to content

Commit db2c0ab

Browse files
Merge pull request #193 from yerke/yerke/update-linux-kernel-driver
2 parents 542a5cf + db5bbf9 commit db2c0ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercise-book/src/building-linux-kernel-driver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ to look.
555555
[example code]: https://github.com/torvalds/linux/blob/v6.14/samples/rust/rust_misc_device.rs
556556

557557
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`).
558+
put it in a package (`cargo new --bin openfile`) and add the `nix` crate with
559+
`ioctl` feature enabled (`cargo add -F ioctl nix`).
560560

561561
```rust ignore
562562
use std::os::fd::AsRawFd;

0 commit comments

Comments
 (0)