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

# relay\_mmap\_buf(9)

mmap channel buffer to process address space

## NAME

relay\_mmap\_buf - mmap channel buffer to process address space

## SYNOPSIS

**int relay\_mmap\_buf(struct rchan\_buf \*** *buf***, struct vm\_area\_struct \*** *vma***);**

## ARGUMENTS

*buf*

relay channel buffer

*vma*

vm\_area\_struct describing memory to be mapped

## DESCRIPTION

Returns 0 if ok, negative on error

Caller should already have grabbed mmap\_sem.

## COPYRIGHT
