FUNCTION::SET_KERNEL_SHORT(3stap)

πŸ’– function::set_kernel_short πŸ’–

okay bestie, welcome to the 3stap manual, aka the SystemTap Tapset Reference corner of the internet, and today's main character is set_kernel_short. she writes shorts. to kernel memory. yes, that kernel memory. no cap, she's built different. 🫢


🌸 NAME 🌸

function::set_kernel_short β€” writes a short value to kernel memory ✨


πŸŽ€ SYNOPSIS πŸŽ€

set_kernel_short(addr:long,val:long)

πŸ’… ARGUMENTS πŸ’…

  • addr β€” the kernel address where you want the short to get written. it's giving destination. πŸ“
  • val β€” the short that's actually getting written there. the payload, the moment, the icon. πŸ‘‘

✨ DESCRIPTION ✨

so here's the tea πŸ“: this function writes the short value to a given kernel memory address. that's the whole vibe. it just... puts the short there. slay.

and if the write to that address fails? it reports an error. so like, if you're poking at an address that doesn't want to be poked, it will let you know, loudly, in the group chat. 😭

⚠️ okay this part matters, bestie, don't scroll past it: this requires the use of guru mode (-g). like, you literally cannot do this without it. guru mode is the price of admission and she does not negotiate. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’œ that's the whole page. you understood it. i'm so proud of you. go write some shorts (responsibly, in guru mode, with -g, like we discussed).

β€” and that's a wrap on the SystemTap Tapset Reference, version of September 2026, bestie!! πŸŒˆπŸ‘‘β­ periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from