# file_write_ready

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

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

## Parameters

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

## Called by

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

## Calls

- [`file_fire_done`](/en/tmux/3.7c/reference/c-function-file_fire_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L825)
- [`file_push`](/en/tmux/3.7c/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L827)

## Referenced declarations

- [`client_files`](/en/tmux/3.7c/reference/c-struct-client_files/) (struct)
- [`client_file.error`](/en/tmux/3.7c/reference/c-struct-client_file-error/) (attribute)
- [`msg_write_ready.error`](/en/tmux/3.7c/reference/c-struct-msg_write_ready-error/) (attribute)
- [`client_file.stream`](/en/tmux/3.7c/reference/c-struct-client_file-stream/) (attribute)
- [`msg_write_ready.stream`](/en/tmux/3.7c/reference/c-struct-msg_write_ready-stream/) (attribute)
