Date: Fri, 10 Oct 1997 13:17:04 +0930 From: Mike Smith <mike@smith.net.au> To: mdean <mdean@best.com> Cc: freebsd-hackers@freebsd.org Subject: Re: free() in device drivers Message-ID: <199710100347.NAA00721@word.smith.net.au> In-Reply-To: Your message of "Thu, 09 Oct 1997 20:11:25 MST." <Pine.SGI.3.95.971009200955.27126A-100000@shellx.best.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > If I do a malloc (p, M_DEVBUF, M_NOWAIT); > > then find a problem in my attach routine, can I do a free(p, M_DEVBUF) to > recover that memory? No. In fact, the memory will remain allocated over even cold reboots, and you will have to open the system, identify which SIMM the memory was allocated on, remove it and wrap it in aluminium foil for half an hour to discharge the DRAM capacitors and clear the allocation. mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710100347.NAA00721>