FUNCTION::SET_KERNEL_LONG(3stap)
π NAME π
function::set_kernel_long β writes a long value to kernel memory
okay bestie, quick vibe check: this is a page from the String and data writing functions chapter of the SystemTap Tapset Reference, manual section 3stap. Yes we're going into the kernel. Yes it's a whole thing. Buckle up π
β¨ SYNOPSIS β¨
set_kernel_long(addr:long,val:long)
like, that's the whole call. two longs. one destination, one payload. slay π
π¦ ARGUMENTS π¦
addrβ the kernel address where the long is gonna get written. this is the "where", the destination, the little mailbox in kernel-land π¬valβ the long that's actually getting written. this is the "what", the payload, the little gift you're dropping off π
πΈ DESCRIPTION πΈ
So the way this works is: it writes the long value to a given kernel memory address. That's it. That's the job. No cap. π
And if the write to that address fails? It reports an error. Not silently, not quietly β it tells you. So if you're out here poking memory and something doesn't stick, you'll know π
β οΈ MAJOR caveat bestie: this requires the use of guru mode (-g). That's not optional, that's not a suggestion, that's the whole entry fee. Guru mode is powerful and that means it is not playing around. You're writing directly into kernel memory. Treat it with main character respect, not reckless main character energy. π
π SEE ALSO π
tapset::conversions-guru(3stap)β go read this one too, it's the whole squad π«Ά
and that's the page!! written for the SystemTap Tapset Reference, dated September 2026 β mwah, take care of your kernel and it'll take care of you πβ¨π§
π¦ 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