mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Move the annotation for vm_map_startup() immediately before the function.
MFC after: 3 days
This commit is contained in:
parent
15b7a831df
commit
6fecb26b6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197661
@ -116,22 +116,6 @@ __FBSDID("$FreeBSD$");
|
||||
* another, and then marking both regions as copy-on-write.
|
||||
*/
|
||||
|
||||
/*
|
||||
* vm_map_startup:
|
||||
*
|
||||
* Initialize the vm_map module. Must be called before
|
||||
* any other vm_map routines.
|
||||
*
|
||||
* Map and entry structures are allocated from the general
|
||||
* purpose memory pool with some exceptions:
|
||||
*
|
||||
* - The kernel map and kmem submap are allocated statically.
|
||||
* - Kernel map entries are allocated out of a static pool.
|
||||
*
|
||||
* These restrictions are necessary since malloc() uses the
|
||||
* maps and requires map entries.
|
||||
*/
|
||||
|
||||
static struct mtx map_sleep_mtx;
|
||||
static uma_zone_t mapentzone;
|
||||
static uma_zone_t kmapentzone;
|
||||
@ -176,6 +160,22 @@ static void vmspace_zdtor(void *mem, int size, void *arg);
|
||||
start = end; \
|
||||
}
|
||||
|
||||
/*
|
||||
* vm_map_startup:
|
||||
*
|
||||
* Initialize the vm_map module. Must be called before
|
||||
* any other vm_map routines.
|
||||
*
|
||||
* Map and entry structures are allocated from the general
|
||||
* purpose memory pool with some exceptions:
|
||||
*
|
||||
* - The kernel map and kmem submap are allocated statically.
|
||||
* - Kernel map entries are allocated out of a static pool.
|
||||
*
|
||||
* These restrictions are necessary since malloc() uses the
|
||||
* maps and requires map entries.
|
||||
*/
|
||||
|
||||
void
|
||||
vm_map_startup(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user