Misc Driver
We want to control the power off driver from user space.
Exercises​
- Implement an IOCTL Read command that sends a number to the driver and the driver prints it to the console.
- Implement and IOCTL command that starts a task to power off QEMU. The time in seconds is supplied by the userspace.
- Implement an IOCTL to stop the power off.
Bonus​
Implement an IOCTL command that return to userspace the amount of time remained until power off.