summaryrefslogtreecommitdiff
path: root/sys/kern/subr_extent.c
AgeCommit message (Collapse)Author
2002-06-28Use %b and print the bitmask of the flags in the debugging message for the ↵Jason Wright
extent.
2002-06-11splvm, not splimp.Artur Grabowski
2002-03-21Two patches from NetBSD:Jason Wright
- extent_alloc_subregion shouldn't allocate a region pasts the end of subregion. - extent_alloc_subregion1(): when a candidate region doesn't fit after being rounded up to respect boundary limits, adjust newstart and last before skiping to the next region. Otherwise we may check the same candidate region against the start of the next region, no the one immediatly following the hole, leading to corrupted map.
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2001-08-06Use pool to allocate extent region descriptors.Artur Grabowski
2001-07-26In extent_destroy, remove the extent from the list ofArtur Grabowski
all extents.
2001-07-05Get rid of the wrapper macros around extent_alloc*1Artur Grabowski
Pass the right amount of arguments and rename them back to their right names.
2001-06-22KNFTheo de Raadt
2001-05-08correct 1 printf.Federico G. Schwindt
2001-05-08In extent_alloc_subregion1, be sure that the region returned don't runFederico G. Schwindt
past the end of the subregion; art@ok, deraadt@ok.
2001-01-17do not call extent_print() unless DDB || DIAGNOSTICTheo de Raadt
2001-01-15update from netbsd:Jason Wright
several fixes with regards to boundary cases and other fixes
2000-09-20Off by one in a validity checkNiklas Hallqvist
2000-03-15prevent overflow in a diagnostic check; art@ okMichael Shalayeff
2000-02-15Add another argument to extent_alloc_subregion to allow specifing an offsetArtur Grabowski
to the alignment. rename the function to extent_alloc_subregion1 and add compatibility macros. From NetBSD.
1999-02-17Always check that the start of our candidate region is within theFederico G. Schwindt
bounds of "substart" and "subend".
1999-01-11Adhere better to DIAGNOSTIC and DDB optionsNiklas Hallqvist
1998-10-01Fix a serious bug in extent_alloc_subregion where the subregion startFederico G. Schwindt
was ignored. This fix some problems in the pcmcia framework.
1998-02-25Add command to print out extents. This helps in debugging PnP stuff,Tobias Weingartner
and "it's just plain cool".
1997-07-12Add some more extent stuff, in preperation of PnP. Huh? Did ITobias Weingartner
say PnP? Anyways, this stuff just adds the ability to register the extents on creation, etc, etc... Someone needs to add a DDB command "show extent", to make this really usefull... ;-)
1996-12-09Import extent manager from NetBSDNiklas Hallqvist
1996-08-07tiny extent manager by shawnTheo de Raadt