I didn't mean the wait (ident) address, but instead the wmesg
address, which is placed in p->p_wmesg, and I think later read
by things like top... or am I being obtuse :).

Chad

On Thu, 23 Mar 2000, Matthew Dillon wrote:

> :In vm_await(), asleep() is called with "vmwait", and then
> :vm_await() just returns. What then happens to the memory at
> :"vmwait" that was passed to asleep()?
> :
> :Am I missing something, other than vm_await is never called
> :so it doesn't really matter?
> :
> :Also, with a quick find, it looks like atapi_queue_cmd() does the
> :same thing in atapi-all.c, but I might be missing something here.
> :
> :Chad
> 
>     The memory at the 'wait' address you tsleep and wakeup on is 
>     never actually accessed, the address is simply used as a 
>     placemarker in the hash table.  So it's ok to asleep() on an 
>     address and then never use it, and it's ok if the object 
>     represented by the address is ripped out from under you in 
>     that case.
> 
>                                       -Matt
>                                       Matthew Dillon 
>                                       <[EMAIL PROTECTED]>
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to