---
name: "relay_alloc_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_alloc_buf"
---

# relay\_alloc\_buf(9)

allocate a channel buffer

## NAME

relay\_alloc\_buf - allocate a channel buffer

## SYNOPSIS

**void \* relay\_alloc\_buf(struct rchan\_buf \*** *buf***, size\_t \*** *size***);**

## ARGUMENTS

*buf*

the buffer struct

*size*

total size of the buffer

## DESCRIPTION

Returns a pointer to the resulting buffer, **NULL** if unsuccessful. The passed in size will get page aligned, if it isn't already.

## COPYRIGHT
