# winlink_shuffle_up

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

```c
int winlink_shuffle_up(struct session *s, struct winlink *wl, int before)
```

## Parameters

- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `before` (`int`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L73)
- [`cmd_move_window_exec`](/en/tmux/latest/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-move-window.c#L96)
- [`cmd_new_window_exec`](/en/tmux/latest/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-window.c#L114)

## Calls

- [`winlink_find_by_index`](/en/tmux/latest/reference/c-function-winlink_find_by_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1773)

## Referenced declarations

- [`winlink.idx`](/en/tmux/latest/reference/c-struct-winlink-idx/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`session.windows`](/en/tmux/latest/reference/c-struct-session-windows/) (attribute)
- [`winlink`](/en/tmux/latest/reference/c-struct-winlink/) (struct)
