Re: Why shm fs (Was [2.3.51pre2] wrong shm_statfs in ipc/shm.c)

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Fri Mar 10 2000 - 14:13:58 EST


Christoph Rohland wrote:
> The shm fs makes posix shm possible. The API for posix shm is much
> more fitting in the Unix way then SYSV IPC. It also is much more
> flexible.
>
> In short you have the following calls for posix shm:
> - shm_open gives you a file descriptor to a shm object
> - you can manipulate this file descriptor with ftruncate, fstat and
> mmap like any other file descriptor
> - shm_unlink removes the object
>
> shm_open and shm_unlink directly map to open/unlink in the shm fs.

Sounds exceedingly similar to the tmpfs idea (from Solaris) -- put /tmp
in swap. Can you use shmfs in that way? I.e., just mount it on /tmp?

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:18 EST