luo_file_deserialize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 incoming file_set you're filling up with deserialized data. it's giving empty canvas, main character energy 🫢
  • file_set_ser β€” the serialized KHO file_set data 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:

  1. Reads the compatible string. πŸ“–
  2. Searches the global list of registered file handlers for one that matches the compatible string. πŸ”
  3. Allocates a new struct luo_file. πŸŽ€
  4. Populates the new structure with the deserialized data (token, private data handle) and links it to the found handler. The file pointer is initialized to NULL, as the file has not been retrieved yet. 🫢
  5. Adds the new struct luo_file to the file_set's files_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