# session_is_linked

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

```c
int session_is_linked(struct session *s, struct window *w)
```

## Parameters

- `s` (`struct session *`)
- `w` (`struct window *`)

## Called by

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

## Other function references

- [`session_group_contains`](/en/tmux/3.2a/reference/c-function-session_group_contains/) (function)
- [`session_group_count`](/en/tmux/3.2a/reference/c-function-session_group_count/) (function)

## Referenced by

- [`cmd_kill_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-kill-window-c-cmd_kill_window_exec/) (function)
- [`session_new`](/en/tmux/3.2a/reference/c-function-session_new/) (function)

## Referenced declarations

- [`window.references`](/en/tmux/3.2a/reference/c-struct-window-references/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
