# session_find

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

```c
struct session * session_find(const char *name)
```

## Parameters

- `name` (`const char *`)

## Called by

- [`cmd_find_get_session`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L264)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L109)
- [`cmd_rename_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-rename-session-c-cmd_rename_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-rename-session.c#L61)
- [`status_prompt_complete`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1766)

## Referenced by

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

## Referenced declarations

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