# session_group_new

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L528
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L319)

## Calls

- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L535)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L536)

## Other function references

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

## Referenced declarations

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