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

# vfree(9)

release memory allocated by vmalloc

## NAME

vfree - release memory allocated by **vmalloc**

## SYNOPSIS

**void vfree(const void \*** *addr***);**

## ARGUMENTS

*addr*

memory base address

## DESCRIPTION

Free the virtually continuous memory area starting at *addr*, as obtained from **vmalloc**, **vmalloc\_32** or **\_\_vmalloc**. If *addr* is NULL, no operation is performed.

Must not be called in NMI context (strictly speaking, only if we don't have CONFIG\_ARCH\_HAVE\_NMI\_SAFE\_CMPXCHG, but making the calling conventions for **vfree** arch-depenedent would be a really bad idea)

## NOTE

assumes that the object at \*addr has a size \>= sizeof(llist\_node)

## COPYRIGHT
