FUNCTION::KERNEL\_STR(3stap) String and data retrieving fun FUNCTION::KERNEL\_STR(3stap)

# [NAME](#NAME)

function::kernel\_string\_quoted - Retrieves and quotes string from kernel memory

# [SYNOPSIS](#SYNOPSIS)

```


    kernel_string_quoted:string(addr:long)
```

# [ARGUMENTS](#ARGUMENTS)

*addr*

the kernel memory address to retrieve the string from

# [DESCRIPTION](#DESCRIPTION)

Returns the null terminated C string from a given kernel memory address where any ASCII characters that are not printable are replaced by the corresponding escape sequence in the returned string. Note that the string will be surrounded by double quotes. If the kernel memory data is not accessible at the given address, the address itself is returned as a string, without double quotes.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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