liveupdate_flb_get_incoming(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ liveupdate_flb_get_incoming(9) β€” the "gimme my stuff back" function ✨

okay so bestie, this one lives in section 9 of the kernel API manual, and it's literally the function that hands you back your FLB object after a reboot πŸŽ€ like the post-reboot reunion episode. it's called liveupdate_flb_get_incoming, and no cap, it's lowkey the main character of the incoming path πŸ’…


🌸 NAME 🌸

liveupdate_flb_get_incoming β€” Retrieve the incoming FLB object. that's it, that's the whole vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int liveupdate_flb_get_incoming (struct liveupdate_flb *flb , void
**objp );

yes bestie, that's genuinely how it's laid out, line break and all. copy it exactly, don't @ me πŸ’€


πŸ’– ARGUMENTS πŸ’–

  • flb β€” The FLB definition. this is your little ID card for the FLB, you gotta hand it over so the function knows which one you're talking about ✨
  • objp β€” Output parameter; will be populated with the live shared object. it's an output parameter, so like, it gets filled in for you β€” you're not setting it, you're receiving it 🎁

πŸ‘‘ DESCRIPTION πŸ‘‘

Returns a pointer to its shared live object for the incoming (post-reboot) path. so yeah, post-reboot, this is the path, and it's handing you a pointer to the shared live object. slay πŸ’…

and here's the part that's giving very much "first time?" energy: if this is the first time the object is requested in the new kernel, this function will trigger the FLB's .retrieve callback to reconstruct the object from its preserved state. so the very first ask does the work πŸ”₯ subsequent calls will return the same cached object β€” so after that first call it's just chillin', cached, same object, no re-reconstructing 🌈


⭐ RETURN ⭐

0 on success, or a negative errno on failure. and because the error codes matter, here's the whole lineup, memorise them bestie 🧚:

  • -ENODATA β€” means no incoming FLB data 🌸
  • -ENOENT β€” means specific flb not found in the incoming data πŸ”
  • -ENODEV β€” if the FLB's module is unloading (bye, module πŸ‘‹)
  • -EOPNOTSUPP β€” when live update is disabled or not configured πŸ™ˆ
lowkey important: those error codes are the literal contract of this function, so if you're checking errors, check for these ones, in these meanings, periodt πŸ’œ

πŸ“ SEE ALSO πŸ“

the whole friend group, ikkk πŸ’–:


and that's the page, bestie! πŸŽ€ sign-off time: this lil beauty comes from ./kernel/liveupdate, dated October 2026, and it's liveupdate_flb_get_incoming(9) the whole way down. go get your incoming object, you've got this πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from