Lost in Shared Memory with Module

Alain Birtz abz at videotron.ca
Sat May 27 22:21:40 EST 2000


My first try to use shared memory inside a module show many conflict
within header /sys/shm.h
So I changed the header for /linux/shm.h. But the shared memory function
has a sys_  prefix:
shmat is changed for sys_shmat. Unfortunatly there is a problem here:
the sys_shmat need a fourth parameter.
--->    asmlinkage int sys_shmat (int shmid, char *shmaddr, int shmflg,
unsigned long *addr);
and there is not man page about sys_shmat that explain the usage of the
addr parameter.

Is it the right way to share memory between module and application ?
Where can I found example of it ?


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list