New to Linux programming in general.
I am trying to communicate with a kernel module via shared memory, but cannot call the functions used in user apps such as shmget(); I have installed kernel-headers and kernel-devel, and included , to the kernel module source, but the headers do not contain any functions.
Is there a standard way of using shared memory in the kernel?
Also, any tips on how to use sockets in the same situation will be of great help.
Using Distro: CentOS 5.2 kernel: 2.6.18-92.1.22.e15
Thanks in advance.
//Added// To clarify, I am trying to make a demo that has common features of a typical embedded linux project. The final goal being porting it to LynxOS to see what kind of troubles may occur when doing so on larger projects.
Currently the main features of the demo is multi-process, pipes, message ques, shared-memory, sockets, multi-threads.
It has an user app and a loadable kernel module communicating with each other. pipes and messages between two processes within the user app, and shared-memory and sockets between the user app and kernel module.
If I am doing something plain off-course, please tell me.