# control_check_subs_session

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

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

## Parameters

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

## Called by

- [`control_check_subs_timer`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L1048)

## Calls

- [`control_write`](/en/tmux/3.2a/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L847)
- [`format_create_defaults`](/en/tmux/3.2a/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L839)
- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L840)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L841)

## Referenced declarations

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