Date: Thu, 9 Oct 1997 23:44:08 -0500 (EST) From: "John S. Dyson" <toor@dyson.iquest.net> To: mike@smith.net.au (Mike Smith) Cc: mdean@best.com, freebsd-hackers@FreeBSD.ORG Subject: Re: free() in device drivers Message-ID: <199710100444.XAA16818@dyson.iquest.net> In-Reply-To: <199710100347.NAA00721@word.smith.net.au> from Mike Smith at "Oct 10, 97 01:17:04 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith said: > > > > 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. > Ahhh... That is where one of my memory leaks is... (:-)). I suggest that a smiley have been used in the previous response :-). -- John dyson@freebsd.org jdyson@nc.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710100444.XAA16818>