I made a kernel module and used the code below to try to make a /dev/mytimer entry.
#define DEVICE_NAME "mytimer"
#define MAJOR_NUM 61
static struct class *fc;
fc = class_create(THIS_MODULE, DEVICE_NAME);
device_create(fc, NULL, MAJOR_NUM, "%s", DEVICE_NAME);
I don't see my module in /dev as /dev/mytimer...
But when I lsmod
, I see it in the list as entry mytimer.
Where and how do I find my module? Is there anyway to put it in /dev?
Thanks!