---
name: "function::task_current"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::task_current"
---

# function::task\_current(3stap)

The current task\_struct of the current task

## NAME

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

## SYNOPSIS

```
    task_current:long()
```

## ARGUMENTS

None

## 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

[*tapset::task*(3stap)](/tapset::task/3stap.md)
