---
name: "alloc_vm_area"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/alloc_vm_area"
---

# alloc\_vm\_area(9)

allocate a range of kernel address space

## NAME

alloc\_vm\_area - allocate a range of kernel address space

## SYNOPSIS

**struct vm\_struct \* alloc\_vm\_area(size\_t** *size***, pte\_t \*\*** *ptes***);**

## ARGUMENTS

*size*

size of the area

*ptes*

returns the PTEs for the address space

## RETURN

NULL on failure, vm\_struct on success

This function reserves a range of kernel address space, and allocates pagetables to map that range. No actual mappings are created.

If *ptes* is non-NULL, pointers to the PTEs (in init\_mm) allocated for the VM area are returned.

## COPYRIGHT
