* Shared memory between module and application: is it possible ?
@ 2000-05-26 23:01 Alain Birtz
2000-05-27 12:36 ` Michael Schmitz
0 siblings, 1 reply; 2+ messages in thread
From: Alain Birtz @ 2000-05-26 23:01 UTC (permalink / raw)
To: linuxppc-dev
How application can do to exchange data with module ?
I know how to share memory between two application,
but when I try to make the samething with module and application
I get header confict:
----------------
In file included from /usr/include/sys/shm.h:24,
from mod_l1.c:9:
/usr/include/unistd.h:193: conflicting types for `ssize_t'
/usr/include/linux/types.h:37: previous declaration of `ssize_t'
In file included from /usr/include/sys/shm.h:25,
from mod_l1.c:9:
/usr/include/sys/types.h:46: conflicting types for `ino_t'
/usr/include/linux/types.h:11: previous declaration of `ino_t'
/usr/include/sys/types.h:57: conflicting types for `dev_t'
/usr/include/linux/types.h:10: previous declaration of `dev_t'
/usr/include/sys/types.h:72: conflicting types for `nlink_t'
/usr/include/linux/types.h:13: previous declaration of `nlink_t'
In file included from /usr/include/sys/types.h:193,
from /usr/include/sys/shm.h:25,
from mod_l1.c:9:
/usr/include/sys/select.h:51: conflicting types for `fd_set'
/usr/include/linux/types.h:9: previous declaration of `fd_set'
----------------
What can I do to fix it ?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Shared memory between module and application: is it possible ?
2000-05-26 23:01 Shared memory between module and application: is it possible ? Alain Birtz
@ 2000-05-27 12:36 ` Michael Schmitz
0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmitz @ 2000-05-27 12:36 UTC (permalink / raw)
To: Alain Birtz; +Cc: linuxppc-dev
> How application can do to exchange data with module ?
>
> I know how to share memory between two application,
> but when I try to make the samething with module and application
> I get header confict:
I'd have the module allocate the memory, and mmap it from the application.
You can't use the SYSV IPC syscalls from the kernel (you might be able to
access the IPC data structures from the kernel some other way but that's a
bit risky).
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-27 12:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-26 23:01 Shared memory between module and application: is it possible ? Alain Birtz
2000-05-27 12:36 ` Michael Schmitz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.