klp_get_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– klp_get_state(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual 🌸 this page is all about klp_get_state, and it’s literally here to get you info about a system state that the given patch modifies πŸ’…βœ¨


πŸ’– NAME πŸ’–

klp_get_state β€” get information about system state modified by the given patch 🫢

✨ SYNOPSIS ✨

struct klp_state * klp_get_state (struct klp_patch *patch , unsigned
long id );

πŸŽ€ ARGUMENTS πŸŽ€

  • patch β€” the livepatch that modifies the given system state πŸ‘‘
  • id β€” the custom identifier of the modified system state πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it checks whether the given patch modifies the given system state βœ… no cap.

and the vibe check on where you can call it: the function can be called either from pre/post (un)patch callbacks or from the kernel code added by the livepatch 🌈✨

πŸ’œ RETURN πŸ’œ

  • pointer to struct klp_state when found, otherwise NULL πŸ’–

🌟 SEE ALSO 🌟


xoxo, signing off from the ./kernel/livepatch source/version corner πŸ’… β€” dated October 2026, and yes bestie, it’s still klp_get_state(9) πŸ’–

πŸ“¦ where this page comes from