[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[[email protected]: Re: free() in device drivers]



-----Forwarded message from Mike Smith <[email protected]>-----

To: mdean <[email protected]>
cc: [email protected]
Subject: Re: free() in device drivers 
From: Mike Smith <[email protected]>

> 
> 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



-----End of forwarded message-----

-- 
Matthew Hunt <[email protected]> * Think locally, act globally.
finger [email protected] for PGP public key.