Date: Thu, 23 Mar 2000 23:27:46 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Chad David <davidc@acns.ab.ca> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: vm_await() Message-ID: <200003240727.XAA08899@apollo.backplane.com> References: <Pine.BSF.4.21.0003232357001.12954-100000@lodge.guild.ab.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
: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 <dillon@backplane.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003240727.XAA08899>