Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 1995 16:36:15 +0200 (MET DST)
From:      Didier Derny <didier@aida.remcomp.fr>
To:        questions@FreeBSD.org
Subject:   mmap / System V IPC
Message-ID:  <199505011436.QAA02154@aida.remcomp.fr>

next in thread | raw e-mail | index | archive | help
Hi

I have a server that need a shared memories with the acces controlled
by semaphores.

How can I do that with mmap system calls.

It seems that the memory is no easily updated


for example I have two queues of small packets of 128 bytes
the server received the packet from a X25 line, enqueue the incoming packet 
in the "in" queue, dequeue the "out" queue and transmit the data to
the X25 line. the user process does the same thing a the other end 
of the queue. This mechanism is controlled by a set of semaphore.

I know that this mechanism should be replaced by an AF_UNIX socket but
I do not have time to rewrite everything now.

Is there somewhere a detailed manual on the mmap system calls.

Is the HAS_SEMAPHORE flag working with FreeBSD (I've not
been able to find it in the kernel).

Thanks for your Help,


----------------------------------------------------------------------------
Didier Derny              
didier@aida.remcomp.fr    
----------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505011436.QAA02154>