# session_group_new

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

```c
struct session_group * session_group_new(const char *name)
```

## Parameters

- `name` (`const char *`)

## Called by

- [`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#L297)

## Calls

- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L538)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L539)

## Other function references

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

## Referenced by

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

## Referenced declarations

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