ANSIfy vm_kern.c
PR: 222673 Submitted by: ota@j.email.ne.jp MFC after: 1 week
This commit is contained in:
parent
fe7f211c0e
commit
6e309d75d2
@ -122,8 +122,7 @@ SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
|
|||||||
* a mapping on demand through vm_fault() will result in a panic.
|
* a mapping on demand through vm_fault() will result in a panic.
|
||||||
*/
|
*/
|
||||||
vm_offset_t
|
vm_offset_t
|
||||||
kva_alloc(size)
|
kva_alloc(vm_size_t size)
|
||||||
vm_size_t size;
|
|
||||||
{
|
{
|
||||||
vm_offset_t addr;
|
vm_offset_t addr;
|
||||||
|
|
||||||
@ -144,9 +143,7 @@ kva_alloc(size)
|
|||||||
* This routine may not block on kernel maps.
|
* This routine may not block on kernel maps.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
kva_free(addr, size)
|
kva_free(vm_offset_t addr, vm_size_t size)
|
||||||
vm_offset_t addr;
|
|
||||||
vm_size_t size;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
size = round_page(size);
|
size = round_page(size);
|
||||||
@ -433,9 +430,7 @@ kmem_free(struct vmem *vmem, vm_offset_t addr, vm_size_t size)
|
|||||||
* This routine may block.
|
* This routine may block.
|
||||||
*/
|
*/
|
||||||
vm_offset_t
|
vm_offset_t
|
||||||
kmap_alloc_wait(map, size)
|
kmap_alloc_wait(vm_map_t map, vm_size_t size)
|
||||||
vm_map_t map;
|
|
||||||
vm_size_t size;
|
|
||||||
{
|
{
|
||||||
vm_offset_t addr;
|
vm_offset_t addr;
|
||||||
|
|
||||||
@ -473,10 +468,7 @@ kmap_alloc_wait(map, size)
|
|||||||
* waiting for memory in that map.
|
* waiting for memory in that map.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
kmap_free_wakeup(map, addr, size)
|
kmap_free_wakeup(vm_map_t map, vm_offset_t addr, vm_size_t size)
|
||||||
vm_map_t map;
|
|
||||||
vm_offset_t addr;
|
|
||||||
vm_size_t size;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
vm_map_lock(map);
|
vm_map_lock(map);
|
||||||
@ -520,8 +512,7 @@ kmem_init_zero_region(void)
|
|||||||
* `start' as allocated, and the range between `start' and `end' as free.
|
* `start' as allocated, and the range between `start' and `end' as free.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
kmem_init(start, end)
|
kmem_init(vm_offset_t start, vm_offset_t end)
|
||||||
vm_offset_t start, end;
|
|
||||||
{
|
{
|
||||||
vm_map_t m;
|
vm_map_t m;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user