---
name: "vm_map_create"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/vm_map_create/9freebsd"
---

# vm\_map\_create(9freebsd)

create a new vm\_map structure

## NAME

**vm\_map\_create** – create a new vm\_map structure

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<vm/vm.h\>**

**#include \<vm/vm\_map.h\>**

*vm\_map\_t*\

**vm\_map\_create**(*pmap\_t pmap*, *vm\_offset\_t min*, *vm\_offset\_t max*);

## DESCRIPTION

The **vm\_map\_create**() function creates and returns a new, empty map structure, associated with the physical map *pmap*, and with the upper and lower address bounds specified by *max* and *min* respectively.

## IMPLEMENTATION NOTES

The kernel's zone allocator is used to allocate the map.

## RETURN VALUES

The **vm\_map\_create**() function returns a pointer to the newly allocated map if successful. Otherwise, it returns NULL.

## SEE ALSO

[pmap(9)](/pmap/9.md), [vm\_map(9)](/vm_map/9.md), [vm\_map\_init(9)](/vm_map_init/9.md)

## AUTHORS

This manual page was written by Bruce M Simpson ⟨*bms@spc.org*⟩.
