FUNCTION::SET\_KERNEL(3stap) String and data writing functi FUNCTION::SET\_KERNEL(3stap)

# [NAME](#NAME)

function::set\_kernel\_pointer - Writes a pointer value to kernel memory.

# [SYNOPSIS](#SYNOPSIS)

```


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

# [ARGUMENTS](#ARGUMENTS)

*addr*

The kernel address to write the pointer to

*val*

The pointer which is to be written

# [DESCRIPTION](#DESCRIPTION)

Writes the pointer 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](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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