FUNCTION::KERNEL_STRING_UTF32(3stap)
π function::kernel_string_utf32 π
okay bestie, welcome to the 3stap manual β that's the SystemTap Tapset Reference, the string-and-data-retrieving corner of the universe, and today we're hyperfixating on ONE little function. she's niche, she's specific, she's lowkey iconic. let's get into it β¨
πΈ NAME πΈ
function::kernel_string_utf32 β retrieves a UTF-32 string from kernel memory. yes. from kernel memory. main character energy fr fr π
π¦ SYNOPSIS π¦
two whole flavors, pick your fighter:
1) kernel_string_utf32:string(addr:long)
2) kernel_string_utf32:string(addr:long,err_msg:string)
π ARGUMENTS π
addrβ the kernel address you're yanking the string out of π«Άerr_msgβ the error message to hand back when the data just... isn't available π
β¨ DESCRIPTION β¨
okay so, two versions, and the tea is:
- this one returns a null terminated UTF-8 string, converted from the UTF-32 string sitting at a given kernel memory address. and if there's a string copy fault or a conversion error? it reports an error. no cap. π
- this one does the exact same glow-up β returns a null terminated UTF-8 string converted from the UTF-32 string at a given kernel memory address β except when there's a string copy fault or a conversion error, it reports the given error message instead. so you get to pick the words. so you get to be the narrator. slay π
π SEE ALSO π
and that's the whole vibe, bestie π§π this was the SystemTap Tapset Reference, Version (the September 2026 edition, periodt β), and you just read the function::kernel_string_utf32(3stap) page. go convert something. iykyk π
π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms