---
name: "function::set_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::set_kernel_int"
---

# function::set\_kernel\_int(3stap)

Writes an int value to kernel memory

## NAME

function::set\_kernel\_int - Writes an int value to kernel memory

## SYNOPSIS

```
    set_kernel_int(addr:long,val:long)
```

## ARGUMENTS

*addr*

The kernel address to write the int to

*val*

The int which is to be written

## DESCRIPTION

Writes the int value to a given kernel memory address. Reports an error when writing to the given address fails. Requires the use of guru mode (-g).

## SEE ALSO0

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