You would mount a tmpfs onto /shm and then code up shm_open() to do
something like:
if (tmpfs_not_available) squawk ();
if (not_mounted) {
mount -t tmpfs none /shm
not_mounted = FALSE;
}
return open ("/shm" path, ...);
We could kill two birds with one stone, giving a tmpfs to those who
believe it's faster than ext2fs :-), and giving us POSIX SHM too.
Regards,
Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu