Global variable from kernel module!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux