FUNCTION::CURRENT\_EX(3stap) Context Functions FUNCTION::CURRENT\_EX(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


    current_exe_file:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#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.

September 2026 SystemTap Tapset Reference Ver

---

Document: function::current_exe_file(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
