Subject: RE: sleeping on a userland address
To: 'Emmanuel Dreyfus' <tech-kern@netbsd.org>
From: Peter J. Hunter <peterh@digitalagent.net>
List: tech-kern
Date: 05/22/2002 16:32:01
The sleep code won't care as it just treats the ident as a key to a hash
table, casting it as a u_long.  However, you'll lose the unique
qualities of the key by using user space addresses (which can be shared
between apps).  Therefore, you run the risk of being errantly woken up
and errantly waking up others.

-Pete

-----Original Message-----
From: tech-kern-owner@netbsd.org [mailto:tech-kern-owner@netbsd.org] On
Behalf Of Emmanuel Dreyfus
Sent: Wednesday, May 22, 2002 3:29 PM
To: tech-kern@netbsd.org
Subject: sleeping on a userland address


Hello

Is it safe to sleep on a userland address? It seems safe to me, but I'd
like to have a confirmation.

-- 
Emmanuel Dreyfus.
"Le 80x86 n'est pas si complexe - il n'a simplement pas de sens" (Mike
Johnson, responsable de la conception x86 chez AMD) 
manu@netbsd.org