---
name: "relay_subbufs_consumed"
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_subbufs_consumed"
---

# relay\_subbufs\_consumed(9)

update the buffer's sub-buffers-consumed count

## NAME

relay\_subbufs\_consumed - update the buffer's sub-buffers-consumed count

## SYNOPSIS

**void relay\_subbufs\_consumed(struct rchan \*** *chan***, unsigned int** *cpu***, size\_t** *subbufs\_consumed***);**

## ARGUMENTS

*chan*

the channel

*cpu*

the cpu associated with the channel buffer to update

*subbufs\_consumed*

number of sub-buffers to add to current buf's count

## DESCRIPTION

Adds to the channel buffer's consumed sub-buffer count. subbufs\_consumed should be the number of sub-buffers newly consumed, not the total consumed.

NOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.

## COPYRIGHT
