---
name: "zap_vma_ptes"
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/zap_vma_ptes"
---

# zap\_vma\_ptes(9)

remove ptes mapping the vma

## NAME

zap\_vma\_ptes - remove ptes mapping the vma

## SYNOPSIS

**int zap\_vma\_ptes(struct vm\_area\_struct \*** *vma***, unsigned long** *address***, unsigned long** *size***);**

## ARGUMENTS

*vma*

vm\_area\_struct holding ptes to be zapped

*address*

starting address of pages to zap

*size*

number of bytes to zap

## DESCRIPTION

This function only unmaps ptes assigned to VM\_PFNMAP vmas.

The entire address range must be fully contained within the vma.

Returns 0 if successful.

## COPYRIGHT
