# control_check_subs_session

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

```c
static void control_check_subs_session(struct client *c, struct control_sub *csub, struct format_tree *ft)
```

## Parameters

- `c` (`struct client *`)
- `csub` (`struct control_sub *`)
- `ft` (`struct format_tree *`)

## Called by

- [`control_check_subs_timer`](/en/tmux/latest/reference/c-function-control-c-control_check_subs_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L1083)

## Calls

- [`control_write`](/en/tmux/latest/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L871)
- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L865)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`control_sub`](/en/tmux/latest/reference/c-struct-control_sub/) (struct)
- [`control_sub.format`](/en/tmux/latest/reference/c-struct-control_sub-format/) (attribute)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`control_sub.last`](/en/tmux/latest/reference/c-struct-control_sub-last/) (attribute)
- [`control_sub.name`](/en/tmux/latest/reference/c-struct-control_sub-name/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
