luo_file_deserialize(9)
π luo_file_deserialize(9) β Kernel API Manual, section 9
okay so bestie, welcome to the glow-up era of luo_file_deserialize β no cap, this one's literally the moment your preserved files come back to life in the new kernel β¨
π NAME π
luo_file_deserialize β Reconstructs the list of preserved files in the new kernel.
πΈ SYNOPSIS πΈ
int luo_file_deserialize (struct luo_file_set *file_set , struct
luo_file_set_ser *file_set_ser );
π¦ ARGUMENTS π¦
file_setβ the incomingfile_setyou're filling up with deserialized data. it's giving empty canvas, main character energy π«Άfile_set_serβ the serialized KHOfile_setdata handed down from the previous kernel. the lore from last boot, iykyk π
β¨ DESCRIPTION β¨
so this function gets called during the early boot process of the new kernel. it takes the raw, contiguous memory block of struct luo_file_ser entries (shoutout to the previous kernel for the handoff π«‘) and transforms it back into a live, in-memory linked list of struct luo_file instances. glow-up complete, periodt.
For each serialized entry, it runs through this whole little routine:
- Reads the
compatiblestring. π - Searches the global list of registered file handlers for one that matches the compatible string. π
- Allocates a new
struct luo_file. π - Populates the new structure with the deserialized data (token, private data handle) and links it to the found handler. The
filepointer is initialized toNULL, as the file has not been retrieved yet. π«Ά - Adds the new
struct luo_fileto the file_set'sfiles_list. π
This prepares the file_set for userspace, which can later call luo_retrieve_file to restore the actual file descriptors. so the real reunion happens later β this is just the save-the-date π
π CONTEXT π
Called from session deserialization. π§
π SEE ALSO π
Kernel file ./kernel/liveupdate/luo_file.c LUO File Descriptors(9), struct luo_file(9), luo_preserve_file(9), luo_file_unpreserve_files(9), luo_file_freeze(9), luo_file_unfreeze(9), luo_retrieve_file(9), luo_file_finish(9), liveupdate_register_file_handler(9), liveupdate_unregister_file_handler(9)
aight bestie that's the whole page π drop a tysm to ./kernel/liveupdate β this icon dropped in October 2026, and yes she ate. πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms