On Thu, 24 Nov 2005, Rob Landley uttered the following:
> There is a tmpfs mount, it's /dev/shm.  And apparently, even if tmpfs isn't 
> exposed as a separate filesystem, system V shared memory will still use it.

s/System V/POSIX/

It's the shm_open()/shm_close()shm_unlink() functions you're looking for.

It's been present in glibc since 2.2, so you should be able to use them
without any real difficulty if need be.

> So my question is, could system v shared memory be used in place of the tmpfs 
> mount?  (Can it be mapped in the right location and inherited across fork()?) 
>  

You could certainly do just that with POSIX shm :)

-- 
`Y'know, London's nice at this time of year. If you like your cities
 freezing cold and full of surly gits.' --- David Damerell



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to