Q: is your code meant to be a kernel module, or a user-space application?
Q: does this compile?
int main (int argc, char *argv)
It does compile for me. I'm just not sure whether or not it's the "correct" solution for your problem.