---
name: "relay_close_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_close_buf"
---

# relay\_close\_buf(9)

close a channel buffer

## NAME

relay\_close\_buf - close a channel buffer

## SYNOPSIS

**void relay\_close\_buf(struct rchan\_buf \*** *buf***);**

## ARGUMENTS

*buf*

channel buffer

## DESCRIPTION

Marks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.

## COPYRIGHT
