FUNCTION::TASK\_CURRE(3stap) Context Functions FUNCTION::TASK\_CURRE(3stap)

# [NAME](#NAME)

function::task\_current - The current task\_struct of the current task

# [SYNOPSIS](#SYNOPSIS)

```


    task_current:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

This function returns the task\_struct representing the current process. This address can be passed to the various task\_\*() functions to extract more task-specific data.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::task*(3stap)](/man/enterprise-packages/systemtap/tapset::task.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::task_current(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
