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

# function::current\_exe\_file(3stap)

get the file struct pointer for the current task's executable file

## NAME

function::current\_exe\_file - get the file struct pointer for the current task's executable file

## SYNOPSIS

```
    current_exe_file:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the file struct pointer for the current task's executable file. Note that the file struct pointer isn't locked on return. The return value of this function can be passed to **fullpath\_struct\_file** to get the path from the file struct.
