# file_read_data

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L833
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-file_read_data/

```c
int file_read_data(struct client_files *files, struct imsg *imsg)
```

## Parameters

- `files` (`struct client_files *`)
- `imsg` (`struct imsg *`)

## Called by

- [`server_client_dispatch`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2302)

## Calls

- [`file_fire_done`](/en/tmux/latest/reference/c-function-file_fire_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L851)
- [`file_fire_read`](/en/tmux/latest/reference/c-function-file_fire_read/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L853)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L847)

## Referenced declarations

- [`client_file.buffer`](/en/tmux/latest/reference/c-struct-client_file-buffer/) (attribute)
- [`client_files`](/en/tmux/latest/reference/c-struct-client_files/) (struct)
- [`client_file.closed`](/en/tmux/latest/reference/c-struct-client_file-closed/) (attribute)
- [`client_file.error`](/en/tmux/latest/reference/c-struct-client_file-error/) (attribute)
- [`client_file.stream`](/en/tmux/latest/reference/c-struct-client_file-stream/) (attribute)
- [`msg_read_data.stream`](/en/tmux/latest/reference/c-struct-msg_read_data-stream/) (attribute)
