# wait_channels_RB_INSERT

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L63
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-wait_channels_rb_insert/

```c
static struct wait_channel * wait_channels_RB_INSERT(struct wait_channels *head, struct wait_channel *elm)
```

## Parameters

- `head` (`struct wait_channels *`)
- `elm` (`struct wait_channel *`)

## Referenced declarations

- [`wait_channel`](/en/tmux/3.2a/reference/c-struct-wait_channel/) (struct)
- [`wait_channels`](/en/tmux/3.2a/reference/c-struct-wait_channels/) (struct)
