Re: [PATCH] Lightweight userspace semaphores...

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 23 Feb 2002 21:22:59 +0000 (GMT)


> Exactly. SMP gives you coherent memory and test-and-set or some other
> atomic operation. Why not use it?

Coherent memory on some platforms, locks on some platforms. Fortunately both
on several important architectures. It needs a much cleaner API but in
user space to wrap the user mode/kernel mode mixed locks. You need the
kernel side for sleeping cases
-
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/