---
name: "pmap_addr_hint"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/pmap_addr_hint"
---

# pmap\_addr\_hint(9)

get a hint for the best-fit mapping of a VM object

## NAME

**pmap\_addr\_hint** – get a hint for the best-fit mapping of a VM object

## SYNOPSIS

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

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

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

*vm\_offset\_t*\

**pmap\_addr\_hint**(*vm\_object\_t obj*, *vm\_offset\_t addr*, *vm\_size\_t size*);

## DESCRIPTION

The **pmap\_addr\_hint**() function returns a hint for the best address at which to map the object *obj* at address *addr* of *size* bytes.

## IMPLEMENTATION NOTES

This function is typically called on behalf of [mmap(2)](/mmap/2.md).

## RETURN VALUES

If the implementation can use the address unchanged, it will simply return *addr*.

## SEE ALSO

[mmap(2)](/mmap/2.md), [pmap(9)](/pmap/9.md)

## AUTHORS

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