# session_update_activity

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

```c
void session_update_activity(struct session *s, struct timeval *from)
```

## Parameters

- `s` (`struct session *`)
- `from` (`struct timeval *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.2a/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-attach-session.c#L133)
- [`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#L326)
- [`cmd_switch_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-switch-client.c#L145)
- [`server_client_check_pane_focus`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_pane_focus/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1654)
- [`server_client_dispatch`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2093)
- [`server_client_key_callback`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1158)
- [`server_destroy_session`](/en/tmux/3.2a/reference/c-function-server_destroy_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L459)
- [`session_create`](/en/tmux/3.2a/reference/c-function-session_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L158)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L277)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L289)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`session.activity_time`](/en/tmux/3.2a/reference/c-struct-session-activity_time/) (attribute)
- [`session.attached`](/en/tmux/3.2a/reference/c-struct-session-attached/) (attribute)
- [`session.id`](/en/tmux/3.2a/reference/c-struct-session-id/) (attribute)
- [`session.last_activity_time`](/en/tmux/3.2a/reference/c-struct-session-last_activity_time/) (attribute)
- [`session.lock_timer`](/en/tmux/3.2a/reference/c-struct-session-lock_timer/) (attribute)
- [`session.name`](/en/tmux/3.2a/reference/c-struct-session-name/) (attribute)
- [`session.options`](/en/tmux/3.2a/reference/c-struct-session-options/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
