# session_find_by_id

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

```c
struct session * session_find_by_id(u_int id)
```

## Parameters

- `id` (`u_int`)

## Called by

- [`session_find_by_id_str`](/en/tmux/3.2a/reference/c-function-session_find_by_id_str/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L96)
- [`window_tree_pull_item`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L158)

## Referenced by

- [`cmd_mouse_window`](/en/tmux/3.2a/reference/c-function-cmd_mouse_window/) (function)
- [`control_notify_input`](/en/tmux/3.2a/reference/c-function-control_notify_input/) (function)

## Referenced declarations

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