# control_check_age

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

```c
static int control_check_age(struct client *c, struct window_pane *wp, struct control_pane *cp)
```

## Parameters

- `c` (`struct client *`)
- `wp` (`struct window_pane *`)
- `cp` (`struct control_pane *`)

## Called by

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

## Calls

- [`control_discard`](/en/tmux/latest/reference/c-function-control_discard/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L467)
- [`control_discard_pane`](/en/tmux/latest/reference/c-function-control-c-control_discard_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L460)
- [`control_write`](/en/tmux/latest/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L461)
- [`get_timer`](/en/tmux/latest/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L448)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L453)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L465)

## Referenced declarations

- [`control_pane.blocks`](/en/tmux/latest/reference/c-struct-control_pane-blocks/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL_PAUSEAFTER`](/en/tmux/latest/reference/c-define-tmux-h-client_control_pauseafter/) (constant)
- [`CLIENT_EXIT`](/en/tmux/latest/reference/c-define-tmux-h-client_exit/) (constant)
- [`CONTROL_MAXIMUM_AGE`](/en/tmux/latest/reference/c-define-control-c-control_maximum_age/) (constant)
- [`control_pane`](/en/tmux/latest/reference/c-struct-control_pane/) (struct)
- [`CONTROL_PANE_PAUSED`](/en/tmux/latest/reference/c-define-control-c-control_pane_paused/) (constant)
- [`client.exit_message`](/en/tmux/latest/reference/c-struct-client-exit_message/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`control_pane.flags`](/en/tmux/latest/reference/c-struct-control_pane-flags/) (attribute)
- [`window_pane.id`](/en/tmux/latest/reference/c-struct-window_pane-id/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`control_block.t`](/en/tmux/latest/reference/c-struct-control_block-t/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
