# proc_get_peer_uid

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L396
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-proc_get_peer_uid/

```c
uid_t proc_get_peer_uid(struct tmuxpeer *peer)
```

## Parameters

- `peer` (`struct tmuxpeer *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L112)
- [`cmd_server_access_deny`](/en/tmux/3.7c/reference/c-function-cmd-server-access-c-cmd_server_access_deny/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-server-access.c#L59)
- [`cmd_switch_client_exec`](/en/tmux/3.7c/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-switch-client.c#L84)
- [`cmdq_add_message`](/en/tmux/3.7c/reference/c-function-cmd-queue-c-cmdq_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L573)
- [`format_cb_client_uid`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_client_uid/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1637)
- [`format_cb_client_user`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_client_user/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1654)
- [`server_acl_join`](/en/tmux/3.7c/reference/c-function-server_acl_join/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-acl.c#L169)
- [`server_acl_user_allow_write`](/en/tmux/3.7c/reference/c-function-server_acl_user_allow_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-acl.c#L134)
- [`server_acl_user_deny_write`](/en/tmux/3.7c/reference/c-function-server_acl_user_deny_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-acl.c#L153)

## Referenced declarations

- [`tmuxpeer`](/en/tmux/3.7c/reference/c-struct-tmuxpeer/) (struct)
- [`tmuxpeer.uid`](/en/tmux/3.7c/reference/c-struct-tmuxpeer-uid/) (attribute)
