smp_text_poke_batch_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smp_text_poke_batch_add(9) πŸ’…

Okay so bestie, welcome to the Kernel API Manual entry for smp_text_poke_batch_add β€” this is a Level 9 page (iykyk, section 9 is where all the kernel API girlies live), and it's literally about updating instructions on a live kernel while SMP is doing its thing, but β€” plot twist β€” batched. πŸ¦‹


✨ NAME ✨

smp_text_poke_batch_add β€” update instruction on live kernel on SMP, batched 🌸

Like, you're poking a running kernel's instructions. On SMP. But you're doing it in a batch, because we're organized and iconic. Periodt. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void __ref smp_text_poke_batch_add (void *addr , const void *opcode ,
       size_t len , const void *emulate );

Yes, the spacing is a little unhinged, no we are not fixing it, it's part of the vibe. πŸ’–


🌈 ARGUMENTS 🌈

  • addr β€” the address to patch. This is the spot you're targeting, bestie. 🎯
  • opcode β€” the opcode of the new instruction. This is the new content going in β€” the main character of this whole operation. πŸ‘‘
  • len β€” the length to copy. How many bytes we're moving. Count them. Don't get it wrong. 😭
  • emulate β€” the instruction to be emulated. There's a stand-in for when things can't just be swapped directly. 🧚

⭐ DESCRIPTION ⭐

So here's the tea, bestie: this function adds a new instruction to the current queue of to-be-patched instructions that the kernel maintains. 🫢

And here's the important part β€” the patching request will NOT be executed immediately. Not me being dramatic, that's just literally how it works. Instead, it becomes part of an array of patching requests, and that array is optimized for batched execution. Efficiency queen behavior. πŸ”₯

⚠️ Nothing has actually been poked yet when this returns! Don't walk away thinking it's done!

All pending patching requests will be executed on the next smp_text_poke_batch_finish call. That's your finish line, your finale, the moment the batch actually goes through. Mark your calendar. πŸ—“οΈβœ¨


πŸ’œ SEE ALSO πŸ’œ

All the poking besties in one place. Slay. πŸ’€πŸ’–


Okay that's the whole page! πŸŽ‰ It lives in ./arch/x86/kernel and this particular edition is dated October 2026 β€” so like, future girlie energy. You understood it, you ate, no cap. πŸŒŸπŸ’…πŸŽ€

πŸ“¦ where this page comes from