FUNCTION::USER_STRING_UTF32(3stap)
β¨ NAME β¨
function::user_string_utf32 β bestie, this one retrieves a UTF-32 string straight outta user memory π (yes it's a 3stap page, we're in tapset land now, buckle up π)
πΈ SYNOPSIS πΈ
1) user_string_utf32:string(addr:long)
2) user_string_utf32:string(addr:long,err_msg:string)
Likeβ¦ two whole flavors of the same function. Pick your fighter π
π¦ ARGUMENTS π¦
addrβ the user address you're pulling the string from. The main character of this operation, lowkey π«Άerr_msgβ the error message that gets handed back when the data justβ¦ isn't available. Your lil safety net, ngl π
π DESCRIPTION π
1) okay so this one returns a null terminated UTF-8 string that's been converted from the UTF-32 string sitting at a given user memory address. And if the string copy faults out or the conversion goes sideways? It reports an error. No cap, that's the whole vibe check π₯
2) same deal β returns a null terminated UTF-8 string converted from the UTF-32 string at a given user memory address. But this time, on a string copy fault or a conversion error, it reports the error message you gave it. Custom error messages are so iconic, honestly π
heads up bestie: both versions can fail β one yells generically, one yells with your words. Either way, a fault or a conversion error is a fault or a conversion error, periodt π
π SEE ALSO π
tapset::uconversions(3stap)β go read this next, it's giving essential context β¨
that's the whole page, you ate that π
this was brought to you by the SystemTap Tapset Reference, dated September 2026 β mwah, drink some water, and go probe something cute π πΈ
π¦ 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