luo_flb_file_preserve(9)

📦 version 7.3.1, in nixpkgs unstable

luo_flb_file_preserve 💅

okay bestie, welcome to the Kernel API Manual page for luo_flb_file_preserve — yes, it’s giving kernel-internals main character energy, and we’re folding the header info right into this cute intro so nothing gets lost. 🫶


✨ NAME ✨

luo_flb_file_preserve — notifies FLBs that a file is about to be preserved. fr fr, that’s the whole assignment. 💖


✨ SYNOPSIS ✨

int luo_flb_file_preserve (struct liveupdate_file_handler *fh );

✨ ARGUMENTS ✨

  • fh — the file handler for the preserved file. that’s it, that’s the argument. 🎀

✨ DESCRIPTION ✨

okay so here’s the vibe: this function iterates through all FLBs associated with the given file handler. for each FLB, it increments the reference count. if that count becomes 1, it triggers the FLB’s .preserve callback to save the global state. ✨

this operation is atomic. and if any FLB’s .preserve op fails, it rolls back by calling .unpreserve on any FLBs that were successfully preserved during this call. no partial slay, basically. 💅


✨ CONTEXT ✨

called from luo_preserve_file — that’s the context, bestie. 🦋


✨ RETURN ✨

0 on success, or a negative errno on failure. periodt. 💜


✨ SEE ALSO ✨

the refs, all of them, no cap:


okay that’s the page, bestie! source/version: ./kernel/liveupdate · date: October 2026 · page: luo_flb_file_preserve(9) — byeee, slay, no cap 💖✨🫶

📦 where this page comes from