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

# function::stack\_unused(3stap)

Returns the amount of kernel stack currently available

## NAME

function::stack\_unused - Returns the amount of kernel stack currently available

## SYNOPSIS

```
    stack_unused:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function determines how many bytes are currently available in the kernel stack.

## SEE ALSO0

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