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

# function::task\_fd\_lookup(3stap)

get the file struct for a task's fd

## NAME

function::task\_fd\_lookup - get the file struct for a task's fd

## SYNOPSIS

```
    task_fd_lookup:long(task:long,fd:long)
```

## ARGUMENTS

*task*

task\_struct pointer.

*fd*

file descriptor number.

## DESCRIPTION

Returns the file struct pointer for a task's file descriptor.
