# winlink_find_by_window

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

```c
struct winlink * winlink_find_by_window(struct winlinks *wwl, struct window *w)
```

## Parameters

- `wwl` (`struct winlinks *`)
- `w` (`struct window *`)

## 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#L93)
- [`cmd_mouse_window`](/en/tmux/latest/reference/c-function-cmd_mouse_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L808)
- [`control_window_pane`](/en/tmux/latest/reference/c-function-control-c-control_window_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L290)
- [`control_write_output`](/en/tmux/latest/reference/c-function-control_write_output/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L481)
- [`format_cb_window_linked_sessions`](/en/tmux/latest/reference/c-function-format-c-format_cb_window_linked_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L2910)
- [`session_renumber_windows`](/en/tmux/latest/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L728)

## Referenced by

- [`server_kill_window`](/en/tmux/latest/reference/c-function-server_kill_window/) (function)

## Referenced declarations

- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`winlink`](/en/tmux/latest/reference/c-struct-winlink/) (struct)
- [`winlinks`](/en/tmux/latest/reference/c-struct-winlinks/) (struct)
