On Mon, 24 Nov 2003, Juergen Oberhofer wrote: > I'm trying to write a module which uses semaphores and shared memory. > I include > #include <linux/ipc.h> > #include <linux/shm.h> > #include <linux/sem.h> > to my file > and try to make use of the functions sys_shmget, sys_shmat, ... defined in > shm.h and sem.h Juergen, You can't use SysV IPC primitives in kernel modules. These synchronization primitives are intended only for userland use, to provide interprocess communication for userland processes - there is no use for them in kernel level. -- JiKos. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/