# server_lock_client

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L159
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-server_lock_client/

```c
void server_lock_client(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_lock_server_exec`](/en/tmux/latest/reference/c-function-cmd-lock-server-c-cmd_lock_server_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-lock-server.c#L75)
- [`server_lock`](/en/tmux/latest/reference/c-function-server_lock/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L143)
- [`server_lock_session`](/en/tmux/latest/reference/c-function-server_lock_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L154)

## Calls

- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L169)
- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L179)
- [`tty_raw`](/en/tmux/latest/reference/c-function-tty_raw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L174)
- [`tty_stop_tty`](/en/tmux/latest/reference/c-function-tty_stop_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L173)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL`](/en/tmux/latest/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_SUSPENDED`](/en/tmux/latest/reference/c-define-tmux-h-client_suspended/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`MSG_LOCK`](/en/tmux/latest/reference/c-enum-msgtype-msg_lock/) (constant)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`client.peer`](/en/tmux/latest/reference/c-struct-client-peer/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`TTYC_CLEAR`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_clear/) (constant)
- [`TTYC_E3`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_e3/) (constant)
- [`TTYC_SMCUP`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_smcup/) (constant)
