# file_read_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L664
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-file-c-file_read_callback/

```c
static void file_read_callback(struct bufferevent *bev, void *arg)
```

## Parameters

- `bev` (`struct bufferevent *`)
- `arg` (`void *`)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L681)
- [`proc_send`](/en/tmux/3.2a/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L687)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L672)
- [`xrealloc`](/en/tmux/3.2a/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L684)

## Referenced by

- [`file_read_open`](/en/tmux/3.2a/reference/c-function-file_read_open/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`client_file.event`](/en/tmux/3.2a/reference/c-struct-client_file-event/) (attribute)
- [`MSG_READ`](/en/tmux/3.2a/reference/c-enum-msgtype-msg_read/) (constant)
- [`client_file.peer`](/en/tmux/3.2a/reference/c-struct-client_file-peer/) (attribute)
- [`client_file.stream`](/en/tmux/3.2a/reference/c-struct-client_file-stream/) (attribute)
