[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Global variable from kernel module!
Hi,
Is it possible to define a global variable in a kernel module and access
it a user level program?
I have created a queue head at kernel module
wait_queue_head_t temp;
and i wanted to add my queue to this list using user level program for
sync.
add_wait_queue(&temp,my_queue);
but when i compile its not able to resolve the queue head variable.
Cant i use queue for IPC between a kernel module and a user level
program.
Any hints appreciated.
Thanks
Karthik
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/