[lkml]   [2002]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Lightweight userspace semaphores...
In message <> you wr
> On Mon, 25 Feb 2002, Rusty Russell wrote:
> > >
> > > sys_sem_create()
> > > sys_sem_destroy()
> >
> > There is no create and destroy (init is purely userspace). There is
> > "this is a semapore: up it". This is a feature.
> You have to realize that there are architectures that need special
> initialization and page allocation for semaphores: they need special flags
> in the TLB for "careful access", for example (sometimes the careful access
> ends up being non-cached).

Bugger. How about:

sys_sem_area(void *pagestart, size_t len)
sys_unsem_area(void *pagestart, size_t len)

Is that sufficient? Is sys_unsem_area required at all?

TDB has an arbitrary number of semaphores in the mmap file...
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:20    [W:0.102 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site