STRUCT KLP_OBJECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct klp_object(9) β€” the kernel API manual, bestie edition πŸ’…

okay so this is the manual page for struct klp_object(9), which lives in the Kernel API Manual fam. It's literally the kernel object structure for live patching β€” like, this little struct is the main character of "which thing are we patching rn". No cap. πŸ‘‘


✨ NAME ✨

struct klp_object β€” kernel object structure for live patching 🫢


🌸 SYNOPSIS 🌸

struct klp_object {
    const char *name;
    struct klp_func *funcs;
    struct klp_callbacks callbacks;
    struct kobject kobj;
    struct list_head func_list;
    struct list_head node;
    struct module *mod;
    bool dynamic;
    bool patched;
 };

πŸŽ€ Members πŸŽ€

  • name β€” the module name, or NULL for vmlinux. that's it, that's the assignment πŸ’–
  • funcs β€” function entries for functions to be patched in the object. the actual to-do list, basically ✨
  • callbacks β€” functions to be executed pre/post (un)patching. before and after vibes πŸ¦‹
  • kobj β€” kobject for sysfs resources. the sysfs hookup 🌸
  • func_list β€” dynamic list of the function entries πŸ’…
  • node β€” list node for klp_patch obj_list πŸŽ€
  • mod β€” kernel module associated with the patched object (NULL for vmlinux). yeah, same NULL-for-vmlinux energy as name πŸ™ˆ
  • dynamic β€” temporary object for nop functions; dynamically allocated. temporary queen, allocated on the fly ⭐
  • patched β€” the object's funcs have been added to the klp_ops list. it's official now, periodt πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./include/linux/livepatch.h plus the whole squad:

  • struct klp_func(9)
  • struct klp_state(9)
  • struct klp_patch(9)

πŸ’€ friendly reminder that this is a members breakdown, so every field above is doing real work β€” don't touch patched or dynamic unless you actually know what you're doing, iykyk 🧚

and that's the whole page, bestie β€” brought to you by ./include/linux, dated October 2026. go patch something iconic πŸ’œ

πŸ“¦ where this page comes from