All of lore.kernel.org
 help / color / mirror / Atom feed
* mmap operation not working as expected on sparc linux
@ 2011-06-01  8:18 Steven Dake
  2011-06-01  8:38 ` David Miller
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Steven Dake @ 2011-06-01  8:18 UTC (permalink / raw)
  To: sparclinux

Hi,

I maintain a project called corosync which uses a memory backed file to
generate a duplicate mapping in memory to implement a ring buffer.  It
essentially uses the concepts here:

http://en.wikipedia.org/wiki/Ring_buffer#Exemplary_POSIX_Implementation

This doesn't appear to work on sparclinux, returning an error EINVAL  on
the second memory map operation:

address = mmap (buffer->address + buffer->count_bytes,
                  buffer->count_bytes, PROT_READ | PROT_WRITE,
                  MAP_FIXED | MAP_SHARED, file_descriptor, 0);

Any ideas?

Thanks
-steve

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-06 23:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01  8:18 mmap operation not working as expected on sparc linux Steven Dake
2011-06-01  8:38 ` David Miller
2011-06-01  9:37 ` Steven Dake
2011-06-01 16:39 ` william felipe_welter
2011-06-02 15:47 ` william felipe_welter
2011-06-02 21:27 ` David Miller
2011-06-02 21:53 ` Steven Dake
2011-06-06 23:06 ` Matthias Rosenfelder

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.