# file_read_error_callback

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

```c
static void file_read_error_callback(struct bufferevent *bev, short what, void *arg)
```

## Parameters

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

## Calls

- [`file_free`](/en/tmux/3.2a/reference/c-function-file_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L659)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L650)
- [`proc_send`](/en/tmux/3.2a/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L654)

## 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)
- [`msg_read_done.error`](/en/tmux/3.2a/reference/c-struct-msg_read_done-error/) (attribute)
- [`client_file.event`](/en/tmux/3.2a/reference/c-struct-client_file-event/) (attribute)
- [`client_file.fd`](/en/tmux/3.2a/reference/c-struct-client_file-fd/) (attribute)
- [`MSG_READ_DONE`](/en/tmux/3.2a/reference/c-enum-msgtype-msg_read_done/) (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)
- [`msg_read_done.stream`](/en/tmux/3.2a/reference/c-struct-msg_read_done-stream/) (attribute)
- [`client_file.tree`](/en/tmux/3.2a/reference/c-struct-client_file-tree/) (attribute)
