# session_find_by_id

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

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

## Parameters

- `id` (`u_int`)

## Called by

- [`server_client_check_mouse`](/en/tmux/latest/reference/c-function-server-client-c-server_client_check_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L860)
- [`session_find_by_id_str`](/en/tmux/latest/reference/c-function-session_find_by_id_str/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L93)
- [`window_tree_pull_item`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L149)

## Referenced by

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

## Referenced declarations

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