mmap system call
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > mmap system call




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mmap system call  
Rakesh UV


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-16-07 06:22 AM

Hi,
I am facing a situation where the mmap fails when two proccess
are trying to access a same shared memory allocated using mmap( the
memory is not private )

this code was working on true 64 but not working on HP-UX, please
provide some link or materials which deals with various
situation( some test code or tutorials) where
-> two proccess are access the same shared memory,
shared
-> two proccess are access the same shared memory,
private
-> the memory is taken from 32 bit addressable region
-> the mempry is mapped protected
etc etc all the possible combination
my code is quite bigger and the debugging becomes quite tough
i want check the situation with smaller code with similar purpose

Some tutorials or test code / some links providing the behaveiour of
mmap at various situation would be highly useful

Best Regards,
Rakesh UV






[ Post a follow-up to this message ]



    Re: mmap system call  
Gianni Mariani


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-16-07 12:20 PM

Rakesh UV wrote:
> Hi,
>        I am facing a situation where the mmap fails when two proccess
> are trying to access a same shared memory allocated using mmap( the
> memory is not private )

IIRC, I don't think HPUX supports mapping to different virtual
addresses.  Could it be possible you're trying to do that ?





[ Post a follow-up to this message ]



    Re: mmap system call  
Scott Lurndal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-16-07 06:23 PM

Rakesh UV <uvrakesh@gmail.com> writes:
>Hi,
>       I am facing a situation where the mmap fails when two proccess
>are trying to access a same shared memory allocated using mmap( the
>memory is not private )

How does the mmap fail?  Does it return an error code?  If so, which
error code?  Could you include the actual mmap call you are making?
Do you expect MAP_PRIVATE to allow two processes to see the same memory?
Do you specify the address in the process virtual address space on
the mmap call with MAP_FIXED?


scott





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register