This adds my blogpost https://phip1611.de/blog/writing-a-linux-driver-for-qemus-debugcon-device/ that shows how you can write a Linux driver for the QEMU debugcon device. Although, the driver still uses C, it is a wonderful example to demonstrate a minimal yet useful driver. Additionally, it is a good starting point for a rewrite in Rust, once the Rust tooling and API bindings in the kernel are more mature.
This adds my blogpost https://phip1611.de/blog/writing-a-linux-driver-for-qemus-debugcon-device/ that shows how you can write a Linux driver for the QEMU debugcon device. Although, the driver still uses C, it is a wonderful example to demonstrate a minimal yet useful driver. Additionally, it is a good starting point for a rewrite in Rust, once the Rust tooling and API bindings in the kernel are more mature.