Subject: Re: fdexpand() memory shortage check (Re: kern/14721)
To: David Laight <>
From: Jason R Thorpe <>
List: tech-kern
Date: 12/15/2001 09:18:50
On Sat, Dec 15, 2001 at 05:06:38PM -0000, David Laight wrote:

 > It is probably safer to have only one free() routine - then you can't
 > call the wrong one!  It ought to be easy (and relatively cheap) to
 > use the virtual address to determine the size and type of allocation.

This is how malloc() currently works.  However, it has to limit the
addresses to kmem_map in order for that to work properly.

        -- Jason R. Thorpe <>