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

# [NAME](#NAME)

function::task\_parent - The task\_struct of the parent task

# [SYNOPSIS](#SYNOPSIS)

```


    task_parent:long(task:long)
```

# [ARGUMENTS](#ARGUMENTS)

*task*

task\_struct pointer

# [DESCRIPTION](#DESCRIPTION)

This function returns the parent task\_struct of the given task. 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_parent(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
