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

# function::task\_parent(3stap)

The task\_struct of the parent task

## NAME

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

## SYNOPSIS

```
    task_parent:long(task:long)
```

## ARGUMENTS

*task*

task\_struct pointer

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

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