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

# function::kernel\_int(3stap)

Retrieves an int value stored in kernel memory

## NAME

function::kernel\_int - Retrieves an int value stored in kernel memory

## SYNOPSIS

```
    kernel_int:long(addr:long)
```

## ARGUMENTS

*addr*

The kernel address to retrieve the int from

## DESCRIPTION

Returns the int value from a given kernel memory address. Reports an error when reading from the given address fails.

## SEE ALSO0

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