Overview: David Young's echo Rust device driver for FreeBSD doesn't seem to return any errors to the kernel. Steps to Reproduce: 1) Clone the driver repo: https://github.com/Acesp25/freebsd-kernel-module-rust 2) Follow the steps in the github description to build and load the driver. 3) Clone the kyua test repo into src/tests/: https://github.com/Acesp25/rustdrv 4) Follow the steps in the github to install the tests in /usr/tests/rustdrv and run the tests Actual Results: Error tests failed as no error was returned Expected Results: An error should have been returned in the driver logic, thus making the error handling tests pass. Build Date & Hardware: FreeBSD-15.0 running in a QEMU VM Additional Information: I believe the bug is from the bottom two methods in bsd-kernel/src/character_device.rs from the driver repo. The read and write methods return 0 unconditionally. If there is any questions on the setup, feel free to reach out!
^Triage: close as OBE. This code is not (yet) in the FreeBSD src. Therefore, an issue should be opened at: https://github.com/nccgroup/freebsd-kernel-module-rust/issues