To run make gcc test.c -o test sudo insmod ioctldriver.ko sudo ./test To remove device sudo rmmod ioctldriver