# cmd_find_get_session

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L248
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_session/

```c
static int cmd_find_get_session(struct cmd_find_state *, const char *)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `session` (`const char *`)

## Called by

- [`cmd_find_target`](/en/tmux/3.2a/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1131)

## Calls

- [`cmd_find_client`](/en/tmux/3.2a/reference/c-function-cmd_find_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L269)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L253)
- [`session_find`](/en/tmux/3.2a/reference/c-function-session_find/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L264)
- [`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/cmd-find.c#L257)

## Referenced by

- [`cmd_find_get_window`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_window/) (function)

## Referenced declarations

- [`CMD_FIND_EXACT_SESSION`](/en/tmux/3.2a/reference/c-define-tmux-h-cmd_find_exact_session/) (constant)
- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`cmd_find_state.flags`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-flags/) (attribute)
- [`session.name`](/en/tmux/3.2a/reference/c-struct-session-name/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-s/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
