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

# function::stp\_pid(3stap)

The process id of the stapio process

## NAME

function::stp\_pid - The process id of the stapio process

## SYNOPSIS

```
    stp_pid:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the process id of the stapio process that launched this script. There could be other SystemTap scripts and stapio processes running on the system.

## SEE ALSO0

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