I.e. there is no way to use shared memory and semaphores in a module? Juergen > 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. > -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/