FUNCTION::STACK\_UNUS(3stap) Context Functions FUNCTION::STACK\_UNUS(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


    stack_unused:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

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

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::context*(3stap)](/man/enterprise-packages/systemtap/tapset::context.3stap)

September 2026 SystemTap Tapset Reference Ver

---

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