Re: [PATCH] Lightweight userspace semaphores...

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Feb 25 2002 - 11:39:56 EST


> > fd = open("/dev/shm/sem....");
>
> Hmm.. Yes. Except I would allow a NULL backing store name for the
> normal(?) case of just wanting private anonymous memory.

unlink()

> At the same time, I have to admit that I like the notion that Rusty had of
> libraries being able to just put their semaphores anywhere (on the stack
> etc), as it does work for many architectures. Ugh.

_alloca
mmap

Still fits on the stack 8)

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



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:15 EST