The following resource can be helpful in starting the programming. https://github.com/invictus-0x90/vulnerable_linux_driver/blob/master/src/vuln_driver.c