sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget'/translations/zh_CN/core-api/liveupdatemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/zh_TW/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/it_IT/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ja_JP/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ko_KR/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/pt_BR/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/sp_SP/core-api/liveupdatemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate.rsthKubhsection)}(hhh](htitle)}(hLive Update Orchestratorh]hLive Update Orchestrator}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(h+Pasha Tatashin h]h paragraph)}(h*Pasha Tatashin h](hPasha Tatashin <}(hhhhhNhNubh reference)}(hpasha.tatashin@soleen.comh]hpasha.tatashin@soleen.com}(hj hhhNhNubah}(h]h ]h"]h$]h&]refuri mailto:pasha.tatashin@soleen.comuh1jhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hX4Live Update is a specialized, kexec-based reboot process that allows a running kernel to be updated from one version to another while preserving the state of selected resources and keeping designated hardware devices operational. For these devices, DMA activity may continue throughout the kernel transition.h]hX4Live Update is a specialized, kexec-based reboot process that allows a running kernel to be updated from one version to another while preserving the state of selected resources and keeping designated hardware devices operational. For these devices, DMA activity may continue throughout the kernel transition.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chK hhhhubh)}(hXWhile the primary use case driving this work is supporting live updates of the Linux kernel when it is used as a hypervisor in cloud environments, the LUO framework itself is designed to be workload-agnostic. Live Update facilitates a full kernel version upgrade for any type of system.h]hXWhile the primary use case driving this work is supporting live updates of the Linux kernel when it is used as a hypervisor in cloud environments, the LUO framework itself is designed to be workload-agnostic. Live Update facilitates a full kernel version upgrade for any type of system.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chKhhhhubh)}(hXFor example, a non-hypervisor system running an in-memory cache like memcached with many gigabytes of data can use LUO. The userspace service can place its cache into a memfd, have its state preserved by LUO, and restore it immediately after the kernel kexec.h]hXFor example, a non-hypervisor system running an in-memory cache like memcached with many gigabytes of data can use LUO. The userspace service can place its cache into a memfd, have its state preserved by LUO, and restore it immediately after the kernel kexec.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chKhhhhubh)}(hWhether the system is running virtual machines, containers, a high-performance database, or networking services, LUO's primary goal is to enable a full kernel update by preserving critical userspace state and keeping essential devices operational.h]hWhether the system is running virtual machines, containers, a high-performance database, or networking services, LUO’s primary goal is to enable a full kernel update by preserving critical userspace state and keeping essential devices operational.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chKhhhhubh)}(hX)The core of LUO is a mechanism that tracks the progress of a live update, along with a callback API that allows other kernel subsystems to participate in the process. Example subsystems that can hook into LUO include: kvm, iommu, interrupts, vfio, participating filesystems, and memory management.h]hX)The core of LUO is a mechanism that tracks the progress of a live update, along with a callback API that allows other kernel subsystems to participate in the process. Example subsystems that can hook into LUO include: kvm, iommu, interrupts, vfio, participating filesystems, and memory management.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chKhhhhubh)}(hLUO uses Kexec Handover to transfer memory state from the current kernel to the next kernel. For more details see Documentation/core-api/kho/index.rst.h]hLUO uses Kexec Handover to transfer memory state from the current kernel to the next kernel. For more details see Documentation/core-api/kho/index.rst.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:8: ./kernel/liveupdate/luo_core.chK#hhhhubh)}(hhh](h)}(h LUO Sessionsh]h LUO Sessions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hX1LUO Sessions provide the core mechanism for grouping and managing `struct file *` instances that need to be preserved across a kexec-based live update. Each session acts as a named container for a set of file objects, allowing a userspace agent to manage the lifecycle of resources critical to a workload.h](hBLUO Sessions provide the core mechanism for grouping and managing }(hjhhhNhNubhtitle_reference)}(h`struct file *`h]h struct file *}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh instances that need to be preserved across a kexec-based live update. Each session acts as a named container for a set of file objects, allowing a userspace agent to manage the lifecycle of resources critical to a workload.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chK hjhhubh)}(hCore Concepts:h]hCore Concepts:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chKhjhhubh bullet_list)}(hhh](h list_item)}(hNamed Containers: Sessions are identified by a unique, user-provided name, which is used for both creation in the current kernel and retrieval in the next kernel. h]h)}(hNamed Containers: Sessions are identified by a unique, user-provided name, which is used for both creation in the current kernel and retrieval in the next kernel.h]hNamed Containers: Sessions are identified by a unique, user-provided name, which is used for both creation in the current kernel and retrieval in the next kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h`Userspace Interface: Session management is driven from userspace via ioctls on /dev/liveupdate. h]h)}(h_Userspace Interface: Session management is driven from userspace via ioctls on /dev/liveupdate.h]h_Userspace Interface: Session management is driven from userspace via ioctls on /dev/liveupdate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hX2Serialization: Session metadata is preserved using the KHO framework. When a live update is triggered via kexec, an array of `struct luo_session_ser` is populated and placed in a preserved memory region. An FDT node is also created, containing the count of sessions and the physical address of this array. h]h)}(hX1Serialization: Session metadata is preserved using the KHO framework. When a live update is triggered via kexec, an array of `struct luo_session_ser` is populated and placed in a preserved memory region. An FDT node is also created, containing the count of sessions and the physical address of this array.h](h}Serialization: Session metadata is preserved using the KHO framework. When a live update is triggered via kexec, an array of }(hjhhhNhNubj)}(h`struct luo_session_ser`h]hstruct luo_session_ser}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is populated and placed in a preserved memory region. An FDT node is also created, containing the count of sessions and the physical address of this array.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhjhKhjhhubh)}(hSession Lifecycle:h]hSession Lifecycle:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chKhjhhubhenumerated_list)}(hhh](j)}(hCreation: A userspace agent calls `luo_session_create()` to create a new, empty session and receives a file descriptor for it. h]h)}(h~Creation: A userspace agent calls `luo_session_create()` to create a new, empty session and receives a file descriptor for it.h](h"Creation: A userspace agent calls }(hjVhhhNhNubj)}(h`luo_session_create()`h]hluo_session_create()}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhF to create a new, empty session and receives a file descriptor for it.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chK hjRubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hSerialization: When the `reboot(LINUX_REBOOT_CMD_KEXEC)` syscall is made, `luo_session_serialize()` is called. It iterates through all active sessions and writes their metadata into a memory area preserved by KHO. h]h)}(hSerialization: When the `reboot(LINUX_REBOOT_CMD_KEXEC)` syscall is made, `luo_session_serialize()` is called. It iterates through all active sessions and writes their metadata into a memory area preserved by KHO.h](hSerialization: When the }(hjhhhNhNubj)}(h `reboot(LINUX_REBOOT_CMD_KEXEC)`h]hreboot(LINUX_REBOOT_CMD_KEXEC)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh syscall is made, }(hjhhhNhNubj)}(h`luo_session_serialize()`h]hluo_session_serialize()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhr is called. It iterates through all active sessions and writes their metadata into a memory area preserved by KHO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chK#hj}ubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hDeserialization (in new kernel): After kexec, `luo_session_deserialize()` runs, reading the serialized data and creating a list of `struct luo_session` objects representing the preserved sessions. h]h)}(hDeserialization (in new kernel): After kexec, `luo_session_deserialize()` runs, reading the serialized data and creating a list of `struct luo_session` objects representing the preserved sessions.h](h.Deserialization (in new kernel): After kexec, }(hjhhhNhNubj)}(h`luo_session_deserialize()`h]hluo_session_deserialize()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: runs, reading the serialized data and creating a list of }(hjhhhNhNubj)}(h`struct luo_session`h]hstruct luo_session}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- objects representing the preserved sessions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chK(hjubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hRetrieval: A userspace agent in the new kernel can then call `luo_session_retrieve()` with a session name to get a new file descriptor and access the preserved state. h]h)}(hRetrieval: A userspace agent in the new kernel can then call `luo_session_retrieve()` with a session name to get a new file descriptor and access the preserved state.h](h=Retrieval: A userspace agent in the new kernel can then call }(hjhhhNhNubj)}(h`luo_session_retrieve()`h]hluo_session_retrieve()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ with a session name to get a new file descriptor and access the preserved state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:13: ./kernel/liveupdate/luo_session.chK,hjubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jMhjhhhNhNubeh}(h] luo-sessionsah ]h"] luo sessionsah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hLUO Preserving File Descriptorsh]hLUO Preserving File Descriptors}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hhhhhKubh)}(hXLUO provides the infrastructure to preserve specific, stateful file descriptors across a kexec-based live update. The primary goal is to allow workloads, such as virtual machines using vfio, memfd, or iommufd, to retain access to their essential resources without interruption.h]hXLUO provides the infrastructure to preserve specific, stateful file descriptors across a kexec-based live update. The primary goal is to allow workloads, such as virtual machines using vfio, memfd, or iommufd, to retain access to their essential resources without interruption.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK hj5hhubh)}(hsThe framework is built around a callback-based handler model and a well- defined lifecycle for each preserved file.h]hsThe framework is built around a callback-based handler model and a well- defined lifecycle for each preserved file.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chKhj5hhubh)}(hXHandler Registration: Kernel modules responsible for a specific file type (e.g., memfd, vfio) register a :c:type:`struct liveupdate_file_handler `. This handler provides a set of callbacks that LUO invokes at different stages of the update process, most notably:h](hiHandler Registration: Kernel modules responsible for a specific file type (e.g., memfd, vfio) register a }(hjdhhhNhNubh)}(hB:c:type:`struct liveupdate_file_handler `h]hliteral)}(hjnh]hstruct liveupdate_file_handler}(hjrhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1jphjlubah}(h]h ]h"]h$]h&]refdoccore-api/liveupdate refdomainj}reftypetype refexplicitrefwarn reftargetliveupdate_file_handleruh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chKhjdubht. This handler provides a set of callbacks that LUO invokes at different stages of the update process, most notably:}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj5hhubh block_quote)}(hX- can_preserve(): A lightweight check to determine if the handler is compatible with a given 'struct file'. - preserve(): The heavyweight operation that saves the file's state and returns an opaque u64 handle. This is typically performed while the workload is still active to minimize the downtime during the actual reboot transition. - unpreserve(): Cleans up any resources allocated by .preserve(), called if the preservation process is aborted before the reboot (i.e. session is closed). - freeze(): A final pre-reboot opportunity to prepare the state for kexec. We are already in reboot syscall, and therefore userspace cannot mutate the file anymore. - unfreeze(): Undoes the actions of .freeze(), called if the live update is aborted after the freeze phase. - retrieve(): Reconstructs the file in the new kernel from the preserved handle. - finish(): Performs final check and cleanup in the new kernel. After succesul finish call, LUO gives up ownership to this file. h]j)}(hhh](j)}(hican_preserve(): A lightweight check to determine if the handler is compatible with a given 'struct file'.h]h)}(hican_preserve(): A lightweight check to determine if the handler is compatible with a given 'struct file'.h]hmcan_preserve(): A lightweight check to determine if the handler is compatible with a given ‘struct file’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hpreserve(): The heavyweight operation that saves the file's state and returns an opaque u64 handle. This is typically performed while the workload is still active to minimize the downtime during the actual reboot transition.h]h)}(hpreserve(): The heavyweight operation that saves the file's state and returns an opaque u64 handle. This is typically performed while the workload is still active to minimize the downtime during the actual reboot transition.h]hpreserve(): The heavyweight operation that saves the file’s state and returns an opaque u64 handle. This is typically performed while the workload is still active to minimize the downtime during the actual reboot transition.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hunpreserve(): Cleans up any resources allocated by .preserve(), called if the preservation process is aborted before the reboot (i.e. session is closed).h]h)}(hunpreserve(): Cleans up any resources allocated by .preserve(), called if the preservation process is aborted before the reboot (i.e. session is closed).h]hunpreserve(): Cleans up any resources allocated by .preserve(), called if the preservation process is aborted before the reboot (i.e. session is closed).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfreeze(): A final pre-reboot opportunity to prepare the state for kexec. We are already in reboot syscall, and therefore userspace cannot mutate the file anymore.h]h)}(hfreeze(): A final pre-reboot opportunity to prepare the state for kexec. We are already in reboot syscall, and therefore userspace cannot mutate the file anymore.h]hfreeze(): A final pre-reboot opportunity to prepare the state for kexec. We are already in reboot syscall, and therefore userspace cannot mutate the file anymore.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hiunfreeze(): Undoes the actions of .freeze(), called if the live update is aborted after the freeze phase.h]h)}(hiunfreeze(): Undoes the actions of .freeze(), called if the live update is aborted after the freeze phase.h]hiunfreeze(): Undoes the actions of .freeze(), called if the live update is aborted after the freeze phase.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK#hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hNretrieve(): Reconstructs the file in the new kernel from the preserved handle.h]h)}(hNretrieve(): Reconstructs the file in the new kernel from the preserved handle.h]hNretrieve(): Reconstructs the file in the new kernel from the preserved handle.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK%hj"ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfinish(): Performs final check and cleanup in the new kernel. After succesul finish call, LUO gives up ownership to this file. h]h)}(h~finish(): Performs final check and cleanup in the new kernel. After succesul finish call, LUO gives up ownership to this file.h]h~finish(): Performs final check and cleanup in the new kernel. After succesul finish call, LUO gives up ownership to this file.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK'hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j<j=uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj5hhubh)}(h'File Preservation Lifecycle happy path:h]h'File Preservation Lifecycle happy path:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK*hj5hhubjN)}(hhh](j)}(hXPreserve (Normal Operation): A userspace agent preserves files one by one via an ioctl. For each file, luo_preserve_file() finds a compatible handler, calls its .preserve() operation, and creates an internal :c:type:`struct luo_file ` to track the live state. h]h)}(hX Preserve (Normal Operation): A userspace agent preserves files one by one via an ioctl. For each file, luo_preserve_file() finds a compatible handler, calls its .preserve() operation, and creates an internal :c:type:`struct luo_file ` to track the live state.h](hPreserve (Normal Operation): A userspace agent preserves files one by one via an ioctl. For each file, luo_preserve_file() finds a compatible handler, calls its .preserve() operation, and creates an internal }(hjvhhhNhNubh)}(h$:c:type:`struct luo_file `h]jq)}(hjh]hstruct luo_file}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjluo_fileuh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK,hjvubh to track the live state.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK,hjrubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(hXFreeze (Pre-Reboot): Just before the kexec, luo_file_freeze() is called. It iterates through all preserved files, calls their respective .freeze() operation, and serializes their final metadata (compatible string, token, and data handle) into a contiguous memory block for KHO. h]h)}(hXFreeze (Pre-Reboot): Just before the kexec, luo_file_freeze() is called. It iterates through all preserved files, calls their respective .freeze() operation, and serializes their final metadata (compatible string, token, and data handle) into a contiguous memory block for KHO.h]hXFreeze (Pre-Reboot): Just before the kexec, luo_file_freeze() is called. It iterates through all preserved files, calls their respective .freeze() operation, and serializes their final metadata (compatible string, token, and data handle) into a contiguous memory block for KHO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK1hjubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(hXVDeserialize: After kexec, luo_file_deserialize() runs when session gets deserialized (which is when /dev/liveupdate is first opened). It reads the serialized data from the KHO memory region and reconstructs the in-memory list of :c:type:`struct luo_file ` instances for the new kernel, linking them to their corresponding handlers. h]h)}(hXUDeserialize: After kexec, luo_file_deserialize() runs when session gets deserialized (which is when /dev/liveupdate is first opened). It reads the serialized data from the KHO memory region and reconstructs the in-memory list of :c:type:`struct luo_file ` instances for the new kernel, linking them to their corresponding handlers.h](hDeserialize: After kexec, luo_file_deserialize() runs when session gets deserialized (which is when /dev/liveupdate is first opened). It reads the serialized data from the KHO memory region and reconstructs the in-memory list of }(hjhhhNhNubh)}(h$:c:type:`struct luo_file `h]jq)}(hjh]hstruct luo_file}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjluo_fileuh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK6hjubhL instances for the new kernel, linking them to their corresponding handlers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(hX'Retrieve (New Kernel - Userspace Ready): The userspace agent can now restore file descriptors by providing a token. luo_retrieve_file() searches for the matching token, calls the handler's .retrieve() op to re-create the 'struct file', and returns a new FD. Files can be retrieved in ANY order. h]h)}(hX&Retrieve (New Kernel - Userspace Ready): The userspace agent can now restore file descriptors by providing a token. luo_retrieve_file() searches for the matching token, calls the handler's .retrieve() op to re-create the 'struct file', and returns a new FD. Files can be retrieved in ANY order.h]hX,Retrieve (New Kernel - Userspace Ready): The userspace agent can now restore file descriptors by providing a token. luo_retrieve_file() searches for the matching token, calls the handler’s .retrieve() op to re-create the ‘struct file’, and returns a new FD. Files can be retrieved in ANY order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:18: ./kernel/liveupdate/luo_file.chK`) that LUO invokes at key points:h](h`h]jq)}(hj5h]hstruct liveupdate_flb_ops}(hj7hhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjliveupdate_flb_opsuh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chKhj+ubh!) that LUO invokes at key points:}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhKhjhhubj)}(hX- .preserve(): Called for the first file. Saves global state. - .unpreserve(): Called for the last file (if aborted pre-reboot). - .retrieve(): Called on-demand in the new kernel to restore the state. - .finish(): Called for the last file in the new kernel for cleanup. h]j)}(hhh](j)}(h;.preserve(): Called for the first file. Saves global state.h]h)}(hjfh]h;.preserve(): Called for the first file. Saves global state.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chKhjdubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(h@.unpreserve(): Called for the last file (if aborted pre-reboot).h]h)}(hj~h]h@.unpreserve(): Called for the last file (if aborted pre-reboot).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chKhj|ubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hE.retrieve(): Called on-demand in the new kernel to restore the state.h]h)}(hjh]hE.retrieve(): Called on-demand in the new kernel to restore the state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chKhjubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hC.finish(): Called for the last file in the new kernel for cleanup. h]h)}(hB.finish(): Called for the last file in the new kernel for cleanup.h]hB.finish(): Called for the last file in the new kernel for cleanup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chKhjubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]j<j=uh1jhjuhKhj]ubah}(h]h ]h"]h$]h&]uh1jhjuhKhjhhubh)}(hThis reference-counted approach ensures that shared state is saved exactly once and restored exactly once, regardless of how many files depend on it, and that its lifecycle is correctly managed across the kexec transition.h]hThis reference-counted approach ensures that shared state is saved exactly once and restored exactly once, regardless of how many files depend on it, and that its lifecycle is correctly managed across the kexec transition.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:23: ./kernel/liveupdate/luo_flb.chK hjhhubeh}(h]$luo-file-lifecycle-bound-global-dataah ]h"]$luo file lifecycle bound global dataah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hLive Update Orchestrator ABIh]hLive Update Orchestrator ABI}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXLive Update Orchestrator uses the stable Application Binary Interface defined below to pass state from a pre-update kernel to a post-update kernel. The ABI is built upon the Kexec HandOver framework and uses a Flattened Device Tree to describe the preserved data.h]hXLive Update Orchestrator uses the stable Application Binary Interface defined below to pass state from a pre-update kernel to a post-update kernel. The ABI is built upon the Kexec HandOver framework and uses a Flattened Device Tree to describe the preserved data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhK hjhhubh)}(hXnThis interface is a contract. Any modification to the FDT structure, node properties, compatible strings, or the layout of the `__packed` serialization structures defined here constitutes a breaking change. Such changes require incrementing the version number in the relevant `_COMPATIBLE` string to prevent a new kernel from misinterpreting data from an old kernel.h](hThis interface is a contract. Any modification to the FDT structure, node properties, compatible strings, or the layout of the }(hjhhhNhNubj)}(h `__packed`h]h__packed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh serialization structures defined here constitutes a breaking change. Such changes require incrementing the version number in the relevant }(hjhhhNhNubj)}(h `_COMPATIBLE`h]h _COMPATIBLE}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM string to prevent a new kernel from misinterpreting data from an old kernel.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhKhjhhubh)}(hChanges are allowed provided the compatibility version is incremented; however, backward/forward compatibility is only guaranteed for kernels supporting the same ABI version.h]hChanges are allowed provided the compatibility version is incremented; however, backward/forward compatibility is only guaranteed for kernels supporting the same ABI version.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhKhjhhubhdefinition_list)}(hhh]hdefinition_list_item)}(hXFDT Structure Overview: The entire LUO state is encapsulated within a single KHO entry named "LUO". This entry contains an FDT with the following layout: .. code-block:: none / { compatible = "luo-v1"; liveupdate-number = <...>; luo-session { compatible = "luo-session-v1"; luo-session-header = ; }; luo-flb { compatible = "luo-flb-v1"; luo-flb-header = ; }; }; h](hterm)}(hFDT Structure Overview:h]hFDT Structure Overview:}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhK+hjQubh definition)}(hhh](h)}(hThe entire LUO state is encapsulated within a single KHO entry named "LUO". This entry contains an FDT with the following layout:h]hThe entire LUO state is encapsulated within a single KHO entry named “LUO”. This entry contains an FDT with the following layout:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhKhjhubh literal_block)}(hX2/ { compatible = "luo-v1"; liveupdate-number = <...>; luo-session { compatible = "luo-session-v1"; luo-session-header = ; }; luo-flb { compatible = "luo-flb-v1"; luo-flb-header = ; }; };h]hX2/ { compatible = "luo-v1"; liveupdate-number = <...>; luo-session { compatible = "luo-session-v1"; luo-session-header = ; }; luo-flb { compatible = "luo-flb-v1"; luo-flb-header = ; }; };}hj|sbah}(h]h ]h"]h$]h&]hhƌforcelanguagenonehighlight_args}uh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhKhjhubeh}(h]h ]h"]h$]h&]uh1jfhjQubeh}(h]h ]h"]h$]h&]uh1jOhjehK+hjLubah}(h]h ]h"]h$]h&]uh1jJhjhhhNhNubh)}(hMain LUO Node (/):h]hMain LUO Node (/):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhK-hjhhubj)}(h- compatible: "luo-v1" Identifies the overall LUO ABI version. - liveupdate-number: u64 A counter tracking the number of successful live updates performed. h]j)}(hhh](j)}(hhhhNhNubj)}(h`struct luo_session_header_ser`h]hstruct luo_session_header_ser}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhW. This structure is the header for a contiguous block of memory containing an array of }(hj>hhhNhNubj)}(h`struct luo_session_ser`h]hstruct luo_session_ser}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh!, one for each preserved session.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:28: ./include/linux/kho/abi/luo.hhK9hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j<j=uh1jhj3hK7hj ubeh}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhj hK h]hfile}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj< ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK#hj8 ubjg)}(hhh]h)}(hThe file object. For retrieve: [OUT] The callback sets this to the new file. For other ops: [IN] The caller sets this to the file being operated on.h]hThe file object. For retrieve: [OUT] The callback sets this to the new file. For other ops: [IN] The caller sets this to the file being operated on.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK!hjT ubah}(h]h ]h"]h$]h&]uh1jfhj8 ubeh}(h]h ]h"]h$]h&]uh1jOhjS hK#hj ubjP)}(hZ``serialized_data`` The opaque u64 handle, preserve/prepare/freeze may update this field. h](jV)}(h``serialized_data``h]jq)}(hjx h]hserialized_data}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjv ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK%hjr ubjg)}(hhh]h)}(hEThe opaque u64 handle, preserve/prepare/freeze may update this field.h]hEThe opaque u64 handle, preserve/prepare/freeze may update this field.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK$hj ubah}(h]h ]h"]h$]h&]uh1jfhjr ubeh}(h]h ]h"]h$]h&]uh1jOhj hK%hj ubjP)}(h``private_data`` Private data for the file used to hold runtime state that is not preserved. Set by the handler's .preserve() callback, and must be freed in the handler's .unpreserve() callback.h](jV)}(h``private_data``h]jq)}(hj h]h private_data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK(hj ubjg)}(hhh]h)}(hPrivate data for the file used to hold runtime state that is not preserved. Set by the handler's .preserve() callback, and must be freed in the handler's .unpreserve() callback.h]hPrivate data for the file used to hold runtime state that is not preserved. Set by the handler’s .preserve() callback, and must be freed in the handler’s .unpreserve() callback.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK&hj ubah}(h]h ]h"]h$]h&]uh1jfhj ubeh}(h]h ]h"]h$]h&]uh1jOhj hK(hj ubeh}(h]h ]h"]h$]h&]uh1jJhjx ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK,hj hhubh)}(hThis structure bundles all parameters for the file operation callbacks. The 'data' and 'file' fields are used for both input and output.h]hThis structure bundles all parameters for the file operation callbacks. The ‘data’ and ‘file’ fields are used for both input and output.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK)hj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j liveupdate_file_ops (C struct)c.liveupdate_file_opshNtauh1j hj hhhj hNubj )}(hhh](j )}(hliveupdate_file_opsh]j )}(hstruct liveupdate_file_opsh](j )}(hj h]hstruct}(hj3 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ hhh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK/ubj )}(h h]h }(hjA hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ hhhj@ hK/ubj )}(hliveupdate_file_opsh]j$ )}(hj- h]hliveupdate_file_ops}(hjS hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjO ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj/ hhhj@ hK/ubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj+ hhhj@ hK/ubah}(h]j& ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj@ hK/hj( hhubjP )}(hhh]h)}(h#Callbacks for live-updatable files.h]h#Callbacks for live-updatable files.}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK6hjr hhubah}(h]h ]h"]h$]h&]uh1jO hj( hhhj@ hK/ubeh}(h]h ](j}structeh"]h$]h&]jp j}jq j jr j js jt ju uh1j hhhj hj hNubjw )}(hX**Definition**:: struct liveupdate_file_ops { bool (*can_preserve)(struct liveupdate_file_handler *handler, struct file *file); int (*preserve)(struct liveupdate_file_op_args *args); void (*unpreserve)(struct liveupdate_file_op_args *args); int (*freeze)(struct liveupdate_file_op_args *args); void (*unfreeze)(struct liveupdate_file_op_args *args); int (*retrieve)(struct liveupdate_file_op_args *args); bool (*can_finish)(struct liveupdate_file_op_args *args); void (*finish)(struct liveupdate_file_op_args *args); unsigned long (*get_id)(struct file *file); struct module *owner; }; **Members** ``can_preserve`` Required. Lightweight check to see if this handler is compatible with the given file. ``preserve`` Required. Performs state-saving for the file. ``unpreserve`` Required. Cleans up any resources allocated by **preserve**. ``freeze`` Optional. Final actions just before kernel transition. ``unfreeze`` Optional. Undo freeze operations. ``retrieve`` Required. Restores the file in the new kernel. ``can_finish`` Optional. Check if this FD can finish, i.e. all restoration pre-requirements for this FD are satisfied. Called prior to finish, in order to do successful finish calls for all resources in the session. ``finish`` Required. Final cleanup in the new kernel. ``get_id`` Optional. Returns a unique identifier for the file. ``owner`` Module referenceh](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK:hj ubj{)}(hX`struct liveupdate_file_ops { bool (*can_preserve)(struct liveupdate_file_handler *handler, struct file *file); int (*preserve)(struct liveupdate_file_op_args *args); void (*unpreserve)(struct liveupdate_file_op_args *args); int (*freeze)(struct liveupdate_file_op_args *args); void (*unfreeze)(struct liveupdate_file_op_args *args); int (*retrieve)(struct liveupdate_file_op_args *args); bool (*can_finish)(struct liveupdate_file_op_args *args); void (*finish)(struct liveupdate_file_op_args *args); unsigned long (*get_id)(struct file *file); struct module *owner; };h]hX`struct liveupdate_file_ops { bool (*can_preserve)(struct liveupdate_file_handler *handler, struct file *file); int (*preserve)(struct liveupdate_file_op_args *args); void (*unpreserve)(struct liveupdate_file_op_args *args); int (*freeze)(struct liveupdate_file_op_args *args); void (*unfreeze)(struct liveupdate_file_op_args *args); int (*retrieve)(struct liveupdate_file_op_args *args); bool (*can_finish)(struct liveupdate_file_op_args *args); void (*finish)(struct liveupdate_file_op_args *args); unsigned long (*get_id)(struct file *file); struct module *owner; };}hj sbah}(h]h ]h"]h$]h&]hhuh1jzh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj ubjg)}(hhh]h)}(h.Required. Restores the file in the new kernel.h]h.Required. Restores the file in the new kernel.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hK>hj(ubah}(h]h ]h"]h$]h&]uh1jfhj ubeh}(h]h ]h"]h$]h&]uh1jOhj'hK>hj ubjP)}(h``can_finish`` Optional. Check if this FD can finish, i.e. all restoration pre-requirements for this FD are satisfied. Called prior to finish, in order to do successful finish calls for all resources in the session. h](jV)}(h``can_finish``h]jq)}(hjKh]h can_finish}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjIubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKBhjEubjg)}(hhh]h)}(hOptional. Check if this FD can finish, i.e. all restoration pre-requirements for this FD are satisfied. Called prior to finish, in order to do successful finish calls for all resources in the session.h]hOptional. Check if this FD can finish, i.e. all restoration pre-requirements for this FD are satisfied. Called prior to finish, in order to do successful finish calls for all resources in the session.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK?hjaubah}(h]h ]h"]h$]h&]uh1jfhjEubeh}(h]h ]h"]h$]h&]uh1jOhj`hKBhj ubjP)}(h6``finish`` Required. Final cleanup in the new kernel. h](jV)}(h ``finish``h]jq)}(hjh]hfinish}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKChjubjg)}(hhh]h)}(h*Required. Final cleanup in the new kernel.h]h*Required. Final cleanup in the new kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKChj ubjP)}(h?``get_id`` Optional. Returns a unique identifier for the file. h](jV)}(h ``get_id``h]jq)}(hjh]hget_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKDhjubjg)}(hhh]h)}(h3Optional. Returns a unique identifier for the file.h]h3Optional. Returns a unique identifier for the file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKDhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKDhj ubjP)}(h``owner`` Module referenceh](jV)}(h ``owner``h]jq)}(hjh]howner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKDhjubjg)}(hhh]h)}(hModule referenceh]hModule reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKEhj ubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhj hKDhj ubeh}(h]h ]h"]h$]h&]uh1jJhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKHhj hhubh)}(h~All operations (except can_preserve) receive a pointer to a 'struct liveupdate_file_op_args' containing the necessary context.h]hAll operations (except can_preserve) receive a pointer to a ‘struct liveupdate_file_op_args’ containing the necessary context.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKEhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j "liveupdate_file_handler (C struct)c.liveupdate_file_handlerhNtauh1j hj hhhj hNubj )}(hhh](j )}(hliveupdate_file_handlerh]j )}(hstruct liveupdate_file_handlerh](j )}(hj h]hstruct}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjthhh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjthhhjhKKubj )}(hliveupdate_file_handlerh]j$ )}(hjrh]hliveupdate_file_handler}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjthhhjhKKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjphhhjhKKubah}(h]jkah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKKhjmhhubjP )}(hhh]h)}(h4Represents a handler for a live-updatable file type.h]h4Represents a handler for a live-updatable file type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKXhjhhubah}(h]h ]h"]h$]h&]uh1jO hjmhhhjhKKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jjr jjs jt ju uh1j hhhj hj hNubjw )}(hX**Definition**:: struct liveupdate_file_handler { const struct liveupdate_file_ops *ops; const char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; }; **Members** ``ops`` Callback functions ``compatible`` The compatibility string (e.g., "memfd-v1", "vfiofd-v1") that uniquely identifies the file type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct file ` instances.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK\hjubj{)}(hstruct liveupdate_file_handler { const struct liveupdate_file_ops *ops; const char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; };h]hstruct liveupdate_file_handler { const struct liveupdate_file_ops *ops; const char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jzh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK^hjubh)}(h **Members**h]j )}(hjh]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKchjubjK)}(hhh](jP)}(h``ops`` Callback functions h](jV)}(h``ops``h]jq)}(hj'h]hops}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj%ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKZhj!ubjg)}(hhh]h)}(hCallback functionsh]hCallback functions}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKZhj=ubah}(h]h ]h"]h$]h&]uh1jfhj!ubeh}(h]h ]h"]h$]h&]uh1jOhj<hKZhjubjP)}(h``compatible`` The compatibility string (e.g., "memfd-v1", "vfiofd-v1") that uniquely identifies the file type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct file ` instances.h](jV)}(h``compatible``h]jq)}(hj`h]h compatible}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj^ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK]hjZubjg)}(hhh]h)}(hThe compatibility string (e.g., "memfd-v1", "vfiofd-v1") that uniquely identifies the file type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct file ` instances.h](hThe compatibility string (e.g., “memfd-v1”, “vfiofd-v1”) that uniquely identifies the file type this handler supports. This is matched against the compatible string associated with individual }(hjyhhhNhNubh)}(h:c:type:`struct file `h]jq)}(hjh]h struct file}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sbjfileuh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK[hjyubh instances.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK[hjvubah}(h]h ]h"]h$]h&]uh1jfhjZubeh}(h]h ]h"]h$]h&]uh1jOhjuhK]hjubeh}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKahj hhubh)}(hXModules that want to support live update for specific file types should register an instance of this structure. LUO uses this registration to determine if a given file can be preserved and to find the appropriate operations to manage its state across the update.h]hXModules that want to support live update for specific file types should register an instance of this structure. LUO uses this registration to determine if a given file can be preserved and to find the appropriate operations to manage its state across the update.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK^hj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j !liveupdate_flb_op_args (C struct)c.liveupdate_flb_op_argshNtauh1j hj hhhj hNubj )}(hhh](j )}(hliveupdate_flb_op_argsh]j )}(hstruct liveupdate_flb_op_argsh](j )}(hj h]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKfubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKfubj )}(hliveupdate_flb_op_argsh]j$ )}(hjh]hliveupdate_flb_op_args}(hj,hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj(ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKfubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKfubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKfhjhhubjP )}(hhh]h)}(h&Arguments for FLB operation callbacks.h]h&Arguments for FLB operation callbacks.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKthjKhhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKfubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jfjr jfjs jt ju uh1j hhhj hj hNubjw )}(hX>**Definition**:: struct liveupdate_flb_op_args { struct liveupdate_flb *flb; u64 data; void *obj; }; **Members** ``flb`` The global FLB instance for which this call is performed. ``data`` For .preserve(): [OUT] The callback sets this field. For .unpreserve(): [IN] The handle from .preserve(). For .retrieve(): [IN] The handle from .preserve(). ``obj`` For .preserve(): [OUT] Sets this to the live object. For .retrieve(): [OUT] Sets this to the live object. For .finish(): [IN] The live object from .retrieve().h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjnubh:}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKxhjjubj{)}(h_struct liveupdate_flb_op_args { struct liveupdate_flb *flb; u64 data; void *obj; };h]h_struct liveupdate_flb_op_args { struct liveupdate_flb *flb; u64 data; void *obj; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jzh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKzhjjubh)}(h **Members**h]j )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjjubjK)}(hhh](jP)}(hB``flb`` The global FLB instance for which this call is performed. h](jV)}(h``flb``h]jq)}(hjh]hflb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKvhjubjg)}(hhh]h)}(h9The global FLB instance for which this call is performed.h]h9The global FLB instance for which this call is performed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKvhjubjP)}(h``data`` For .preserve(): [OUT] The callback sets this field. For .unpreserve(): [IN] The handle from .preserve(). For .retrieve(): [IN] The handle from .preserve(). h](jV)}(h``data``h]jq)}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKyhjubjg)}(hhh]h)}(hFor .preserve(): [OUT] The callback sets this field. For .unpreserve(): [IN] The handle from .preserve(). For .retrieve(): [IN] The handle from .preserve().h]hFor .preserve(): [OUT] The callback sets this field. For .unpreserve(): [IN] The handle from .preserve(). For .retrieve(): [IN] The handle from .preserve().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKwhj ubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhj hKyhjubjP)}(h``obj`` For .preserve(): [OUT] Sets this to the live object. For .retrieve(): [OUT] Sets this to the live object. For .finish(): [IN] The live object from .retrieve().h](jV)}(h``obj``h]jq)}(hj.h]hobj}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj,ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK{hj(ubjg)}(hhh]h)}(hFor .preserve(): [OUT] Sets this to the live object. For .retrieve(): [OUT] Sets this to the live object. For .finish(): [IN] The live object from .retrieve().h]hFor .preserve(): [OUT] Sets this to the live object. For .retrieve(): [OUT] Sets this to the live object. For .finish(): [IN] The live object from .retrieve().}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKzhjDubah}(h]h ]h"]h$]h&]uh1jfhj(ubeh}(h]h ]h"]h$]h&]uh1jOhjChK{hjubeh}(h]h ]h"]h$]h&]uh1jJhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j hjoubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj hhubh)}(hFThis structure bundles all parameters for the FLB operation callbacks.h]hFThis structure bundles all parameters for the FLB operation callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhK|hj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j liveupdate_flb_ops (C struct)c.liveupdate_flb_opshNtauh1j hj hhhj hNubj )}(hhh](j )}(hliveupdate_flb_opsh]j )}(hstruct liveupdate_flb_opsh](j )}(hj h]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKubj )}(hliveupdate_flb_opsh]j$ )}(hjh]hliveupdate_flb_ops}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKhjhhubjP )}(hhh]h)}(h/Callbacks for global File-Lifecycle-Bound data.h]h/Callbacks for global File-Lifecycle-Bound data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq j jr j js jt ju uh1j hhhj hj hNubjw )}(hX**Definition**:: struct liveupdate_flb_ops { int (*preserve)(struct liveupdate_flb_op_args *argp); void (*unpreserve)(struct liveupdate_flb_op_args *argp); int (*retrieve)(struct liveupdate_flb_op_args *argp); void (*finish)(struct liveupdate_flb_op_args *argp); struct module *owner; }; **Members** ``preserve`` Called when the first file using this FLB is preserved. The callback must save its state and return a single, self-contained u64 handle by setting the 'argp->data' field and 'argp->obj'. ``unpreserve`` Called when the last file using this FLB is unpreserved (aborted before reboot). Receives the handle via 'argp->data' and live object via 'argp->obj'. ``retrieve`` Called on-demand in the new kernel, the first time a component requests access to the shared object. It receives the preserved handle via 'argp->data' and must reconstruct the live object, returning it by setting the 'argp->obj' field. ``finish`` Called in the new kernel when the last file using this FLB is finished. Receives the live object via 'argp->obj' for cleanup. ``owner`` Module referenceh](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj ubj{)}(hX"struct liveupdate_flb_ops { int (*preserve)(struct liveupdate_flb_op_args *argp); void (*unpreserve)(struct liveupdate_flb_op_args *argp); int (*retrieve)(struct liveupdate_flb_op_args *argp); void (*finish)(struct liveupdate_flb_op_args *argp); struct module *owner; };h]hX"struct liveupdate_flb_ops { int (*preserve)(struct liveupdate_flb_op_args *argp); void (*unpreserve)(struct liveupdate_flb_op_args *argp); int (*retrieve)(struct liveupdate_flb_op_args *argp); void (*finish)(struct liveupdate_flb_op_args *argp); struct module *owner; };}hj.sbah}(h]h ]h"]h$]h&]hhuh1jzh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj ubh)}(h **Members**h]j )}(hj?h]hMembers}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj ubjK)}(hhh](jP)}(h``preserve`` Called when the first file using this FLB is preserved. The callback must save its state and return a single, self-contained u64 handle by setting the 'argp->data' field and 'argp->obj'. h](jV)}(h ``preserve``h]jq)}(hj^h]hpreserve}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj\ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjXubjg)}(hhh]h)}(hCalled when the first file using this FLB is preserved. The callback must save its state and return a single, self-contained u64 handle by setting the 'argp->data' field and 'argp->obj'.h]hCalled when the first file using this FLB is preserved. The callback must save its state and return a single, self-contained u64 handle by setting the ‘argp->data’ field and ‘argp->obj’.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjtubah}(h]h ]h"]h$]h&]uh1jfhjXubeh}(h]h ]h"]h$]h&]uh1jOhjshKhjUubjP)}(h``unpreserve`` Called when the last file using this FLB is unpreserved (aborted before reboot). Receives the handle via 'argp->data' and live object via 'argp->obj'. h](jV)}(h``unpreserve``h]jq)}(hjh]h unpreserve}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubjg)}(hhh]h)}(hCalled when the last file using this FLB is unpreserved (aborted before reboot). Receives the handle via 'argp->data' and live object via 'argp->obj'.h]hCalled when the last file using this FLB is unpreserved (aborted before reboot). Receives the handle via ‘argp->data’ and live object via ‘argp->obj’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjUubjP)}(h``retrieve`` Called on-demand in the new kernel, the first time a component requests access to the shared object. It receives the preserved handle via 'argp->data' and must reconstruct the live object, returning it by setting the 'argp->obj' field. h](jV)}(h ``retrieve``h]jq)}(hjh]hretrieve}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubjg)}(hhh]h)}(hCalled on-demand in the new kernel, the first time a component requests access to the shared object. It receives the preserved handle via 'argp->data' and must reconstruct the live object, returning it by setting the 'argp->obj' field.h]hCalled on-demand in the new kernel, the first time a component requests access to the shared object. It receives the preserved handle via ‘argp->data’ and must reconstruct the live object, returning it by setting the ‘argp->obj’ field.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjUubjP)}(h``finish`` Called in the new kernel when the last file using this FLB is finished. Receives the live object via 'argp->obj' for cleanup. h](jV)}(h ``finish``h]jq)}(hj h]hfinish}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubjg)}(hhh]h)}(h}Called in the new kernel when the last file using this FLB is finished. Receives the live object via 'argp->obj' for cleanup.h]hCalled in the new kernel when the last file using this FLB is finished. Receives the live object via ‘argp->obj’ for cleanup.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj"ubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhj!hKhjUubjP)}(h``owner`` Module referenceh](jV)}(h ``owner``h]jq)}(hjFh]howner}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjDubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj@ubjg)}(hhh]h)}(hModule referenceh]hModule reference}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj\ubah}(h]h ]h"]h$]h&]uh1jfhj@ubeh}(h]h ]h"]h$]h&]uh1jOhj[hKhjUubeh}(h]h ]h"]h$]h&]uh1jJhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj hhubh)}(hOperations that manage global shared data with file bound lifecycle, triggered by the first file that uses it and concluded by the last file that uses it, across all sessions.h]hOperations that manage global shared data with file bound lifecycle, triggered by the first file that uses it and concluded by the last file that uses it, across all sessions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j liveupdate_flb (C struct)c.liveupdate_flbhNtauh1j hj hhhj hNubj )}(hhh](j )}(hliveupdate_flbh]j )}(hstruct liveupdate_flbh](j )}(hj h]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKubj )}(hliveupdate_flbh]j$ )}(hjh]hliveupdate_flb}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKhjhhubjP )}(hhh]h)}(h-A global definition for a shared data object.h]h-A global definition for a shared data object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq j!jr j!js jt ju uh1j hhhj hj hNubjw )}(hX**Definition**:: struct liveupdate_flb { const struct liveupdate_flb_ops *ops; const char compatible[LIVEUPDATE_FLB_COMPAT_LENGTH]; }; **Members** ``ops`` Callback functions ``compatible`` The compatibility string (e.g., "iommu-core-v1" that uniquely identifies the FLB type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct liveupdate_flb ` instances.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubh:}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj%ubj{)}(h}struct liveupdate_flb { const struct liveupdate_flb_ops *ops; const char compatible[LIVEUPDATE_FLB_COMPAT_LENGTH]; };h]h}struct liveupdate_flb { const struct liveupdate_flb_ops *ops; const char compatible[LIVEUPDATE_FLB_COMPAT_LENGTH]; };}hjFsbah}(h]h ]h"]h$]h&]hhuh1jzh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj%ubh)}(h **Members**h]j )}(hjWh]hMembers}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj%ubjK)}(hhh](jP)}(h``ops`` Callback functions h](jV)}(h``ops``h]jq)}(hjvh]hops}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjtubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjpubjg)}(hhh]h)}(hCallback functionsh]hCallback functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jfhjpubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjmubjP)}(hX``compatible`` The compatibility string (e.g., "iommu-core-v1" that uniquely identifies the FLB type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct liveupdate_flb ` instances.h](jV)}(h``compatible``h]jq)}(hjh]h compatible}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubjg)}(hhh]h)}(hThe compatibility string (e.g., "iommu-core-v1" that uniquely identifies the FLB type this handler supports. This is matched against the compatible string associated with individual :c:type:`struct liveupdate_flb ` instances.h](hThe compatibility string (e.g., “iommu-core-v1” that uniquely identifies the FLB type this handler supports. This is matched against the compatible string associated with individual }(hjhhhNhNubh)}(h0:c:type:`struct liveupdate_flb `h]jq)}(hjh]hstruct liveupdate_flb}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjjliveupdate_flbuh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhjubh instances.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjmubeh}(h]h ]h"]h$]h&]uh1jJhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhj hNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj hhubh)}(hThis struct is the "template" that a driver registers to define a shared, file-lifecycle-bound object. The actual runtime state (the live object, refcount, etc.) is managed privately by the LUO core.h]hThis struct is the “template” that a driver registers to define a shared, file-lifecycle-bound object. The actual runtime state (the live object, refcount, etc.) is managed privately by the LUO core.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:40: ./include/linux/liveupdate.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_file_ser (C struct)c.luo_file_serhNtauh1j hj hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhNubj )}(hhh](j )}(h luo_file_serh]j )}(hstruct luo_file_serh](j )}(hj h]hstruct}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjPhhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjPhhhjahKubj )}(h luo_file_serh]j$ )}(hjNh]h luo_file_ser}(hjthhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjpubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjPhhhjahKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjLhhhjahKubah}(h]jFah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjahKhjIhhubjP )}(hhh]h)}(h*Represents the serialized preserves files.h]h*Represents the serialized preserves files.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhK{hjhhubah}(h]h ]h"]h$]h&]uh1jO hjIhhhjahKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jjr jjs jt ju uh1j hhhj hjHhNubjw )}(hX **Definition**:: struct luo_file_ser { char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; u64 data; u64 token; }; **Members** ``compatible`` File handler compatible string. ``data`` Private data ``token`` User provided token for this fileh](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubj{)}(histruct luo_file_ser { char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; u64 data; u64 token; };h]histruct luo_file_ser { char compatible[LIVEUPDATE_HNDL_COMPAT_LENGTH]; u64 data; u64 token; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubh)}(h **Members**h]j )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjK)}(hhh](jP)}(h/``compatible`` File handler compatible string. h](jV)}(h``compatible``h]jq)}(hjh]h compatible}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhK}hjubjg)}(hhh]h)}(hFile handler compatible string.h]hFile handler compatible string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK}hjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhK}hjubjP)}(h``data`` Private data h](jV)}(h``data``h]jq)}(hj<h]hdata}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj:ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhK~hj6ubjg)}(hhh]h)}(h Private datah]h Private data}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhK~hjRubah}(h]h ]h"]h$]h&]uh1jfhj6ubeh}(h]h ]h"]h$]h&]uh1jOhjQhK~hjubjP)}(h+``token`` User provided token for this fileh](jV)}(h ``token``h]jq)}(hjuh]htoken}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjsubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhK~hjoubjg)}(hhh]h)}(h!User provided token for this fileh]h!User provided token for this file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhjoubeh}(h]h ]h"]h$]h&]uh1jOhjhK~hjubeh}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hFIf this structure is modified, LUO_SESSION_COMPATIBLE must be updated.h]hFIf this structure is modified, LUO_SESSION_COMPATIBLE must be updated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_file_set_ser (C struct)c.luo_file_set_serhNtauh1j hj hhhjHhNubj )}(hhh](j )}(hluo_file_set_serh]j )}(hstruct luo_file_set_serh](j )}(hj h]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKubj )}(hluo_file_set_serh]j$ )}(hjh]hluo_file_set_ser}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKhjhhubjP )}(hhh]h)}(h/Represents the serialized metadata for file seth]h/Represents the serialized metadata for file set}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj5hhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jPjr jPjs jt ju uh1j hhhj hjHhNubjw )}(hX**Definition**:: struct luo_file_set_ser { u64 files; u64 count; }; **Members** ``files`` The physical address of a contiguous memory block that holds the serialized state of files (array of luo_file_ser) in this file set. ``count`` The total number of files that were part of this session during serialization. Used for iteration and validation during restoration.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubh:}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubj{)}(h:struct luo_file_set_ser { u64 files; u64 count; };h]h:struct luo_file_set_ser { u64 files; u64 count; };}hjusbah}(h]h ]h"]h$]h&]hhuh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubh)}(h **Members**h]j )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubjK)}(hhh](jP)}(h``files`` The physical address of a contiguous memory block that holds the serialized state of files (array of luo_file_ser) in this file set. h](jV)}(h ``files``h]jq)}(hjh]hfiles}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hThe physical address of a contiguous memory block that holds the serialized state of files (array of luo_file_ser) in this file set.h]hThe physical address of a contiguous memory block that holds the serialized state of files (array of luo_file_ser) in this file set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjubjP)}(h``count`` The total number of files that were part of this session during serialization. Used for iteration and validation during restoration.h](jV)}(h ``count``h]jq)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hThe total number of files that were part of this session during serialization. Used for iteration and validation during restoration.h]hThe total number of files that were part of this session during serialization. Used for iteration and validation during restoration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjubeh}(h]h ]h"]h$]h&]uh1jJhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j !luo_session_header_ser (C struct)c.luo_session_header_serhNtauh1j hj hhhjHhNubj )}(hhh](j )}(hluo_session_header_serh]j )}(hstruct luo_session_header_serh](j )}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj5hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj5hhhjFhKubj )}(hluo_session_header_serh]j$ )}(hj3h]hluo_session_header_ser}(hjYhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjUubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj5hhhjFhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj1hhhjFhKubah}(h]j,ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjFhKhj.hhubjP )}(hhh]h)}(h-Header for the serialized session data block.h]h-Header for the serialized session data block.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjxhhubah}(h]h ]h"]h$]h&]uh1jO hj.hhhjFhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jjr jjs jt ju uh1j hhhj hjHhNubjw )}(h**Definition**:: struct luo_session_header_ser { u64 count; }; **Members** ``count`` The number of `struct luo_session_ser` entries that immediately follow this header in the memory block.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubj{)}(h1struct luo_session_header_ser { u64 count; };h]h1struct luo_session_header_ser { u64 count; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubh)}(h **Members**h]j )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjK)}(hhh]jP)}(hq``count`` The number of `struct luo_session_ser` entries that immediately follow this header in the memory block.h](jV)}(h ``count``h]jq)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hgThe number of `struct luo_session_ser` entries that immediately follow this header in the memory block.h](hThe number of }(hjhhhNhNubj)}(h`struct luo_session_ser`h]hstruct luo_session_ser}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA entries that immediately follow this header in the memory block.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubh)}(h**Description**h]j )}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hThis structure is located at the beginning of a contiguous block of physical memory preserved across the kexec. It provides the necessary metadata to interpret the array of session entries that follow.h]hThis structure is located at the beginning of a contiguous block of physical memory preserved across the kexec. It provides the necessary metadata to interpret the array of session entries that follow.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hLIf this structure is modified, `LUO_FDT_SESSION_COMPATIBLE` must be updated.h](hIf this structure is modified, }(hjahhhNhNubj)}(h`LUO_FDT_SESSION_COMPATIBLE`h]hLUO_FDT_SESSION_COMPATIBLE}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh must be updated.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_session_ser (C struct)c.luo_session_serhNtauh1j hj hhhjHhNubj )}(hhh](j )}(hluo_session_serh]j )}(hstruct luo_session_serh](j )}(hj h]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKubj )}(hluo_session_serh]j$ )}(hjh]hluo_session_ser}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKhjhhubjP )}(hhh]h)}(h5Represents the serialized metadata for a LUO session.h]h5Represents the serialized metadata for a LUO session.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jjr jjs jt ju uh1j hhhj hjHhNubjw )}(hXD**Definition**:: struct luo_session_ser { char name[LIVEUPDATE_SESSION_NAME_LENGTH]; struct luo_file_set_ser file_set_ser; }; **Members** ``name`` The unique name of the session, provided by the userspace at the time of session creation. ``file_set_ser`` Serialized files belonging to this session,h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubj{)}(htstruct luo_session_ser { char name[LIVEUPDATE_SESSION_NAME_LENGTH]; struct luo_file_set_ser file_set_ser; };h]htstruct luo_session_ser { char name[LIVEUPDATE_SESSION_NAME_LENGTH]; struct luo_file_set_ser file_set_ser; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubh)}(h **Members**h]j )}(hj+h]hMembers}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjK)}(hhh](jP)}(hd``name`` The unique name of the session, provided by the userspace at the time of session creation. h](jV)}(h``name``h]jq)}(hjJh]hname}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjHubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjDubjg)}(hhh]h)}(hZThe unique name of the session, provided by the userspace at the time of session creation.h]hZThe unique name of the session, provided by the userspace at the time of session creation.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj`ubah}(h]h ]h"]h$]h&]uh1jfhjDubeh}(h]h ]h"]h$]h&]uh1jOhj_hKhjAubjP)}(h<``file_set_ser`` Serialized files belonging to this session,h](jV)}(h``file_set_ser``h]jq)}(hjh]h file_set_ser}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj~ubjg)}(hhh]h)}(h+Serialized files belonging to this session,h]h+Serialized files belonging to this session,}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubah}(h]h ]h"]h$]h&]uh1jfhj~ubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjAubeh}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hThis structure is used to package session-specific metadata for transfer between kernels via Kexec Handover. An array of these structures (one per session) is created and passed to the new kernel, allowing it to reconstruct the session context.h]hThis structure is used to package session-specific metadata for transfer between kernels via Kexec Handover. An array of these structures (one per session) is created and passed to the new kernel, allowing it to reconstruct the session context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hLIf this structure is modified, `LUO_FDT_SESSION_COMPATIBLE` must be updated.h](hIf this structure is modified, }(hjhhhNhNubj)}(h`LUO_FDT_SESSION_COMPATIBLE`h]hLUO_FDT_SESSION_COMPATIBLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be updated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_flb_header_ser (C struct)c.luo_flb_header_serhNtauh1j hj hhhjHhNubj )}(hhh](j )}(hluo_flb_header_serh]j )}(hstruct luo_flb_header_serh](j )}(hj h]hstruct}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"hhhj3hKubj )}(hluo_flb_header_serh]j$ )}(hj h]hluo_flb_header_ser}(hjFhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjBubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj"hhhj3hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhj3hKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj3hKhjhhubjP )}(hhh]h)}(h)Header for the serialized FLB data block.h]h)Header for the serialized FLB data block.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjehhubah}(h]h ]h"]h$]h&]uh1jO hjhhhj3hKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jjr jjs jt ju uh1j hhhj hjHhNubjw )}(hX**Definition**:: struct luo_flb_header_ser { u64 pgcnt; u64 count; }; **Members** ``pgcnt`` The total number of pages occupied by the entire preserved memory region, including this header and the subsequent array of :c:type:`struct luo_flb_ser ` entries. ``count`` The number of :c:type:`struct luo_flb_ser ` entries that follow this header in the memory block.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubj{)}(h` entries. h](jV)}(h ``pgcnt``h]jq)}(hjh]hpgcnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hThe total number of pages occupied by the entire preserved memory region, including this header and the subsequent array of :c:type:`struct luo_flb_ser ` entries.h](h|The total number of pages occupied by the entire preserved memory region, including this header and the subsequent array of }(hjhhhNhNubh)}(h*:c:type:`struct luo_flb_ser `h]jq)}(hjh]hstruct luo_flb_ser}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjj luo_flb_seruh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubh entries.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjubjP)}(hw``count`` The number of :c:type:`struct luo_flb_ser ` entries that follow this header in the memory block.h](jV)}(h ``count``h]jq)}(hj2h]hcount}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj0ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj,ubjg)}(hhh]h)}(hmThe number of :c:type:`struct luo_flb_ser ` entries that follow this header in the memory block.h](hThe number of }(hjKhhhNhNubh)}(h*:c:type:`struct luo_flb_ser `h]jq)}(hjUh]hstruct luo_flb_ser}(hjWhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjSubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjj luo_flb_seruh1hhjGhKhjKubh5 entries that follow this header in the memory block.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jfhj,ubeh}(h]h ]h"]h$]h&]uh1jOhjGhKhjubeh}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubh)}(h**Description**h]j )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hXThis structure is located at the physical address specified by the `LUO_FDT_FLB_HEADER` FDT property. It provides the new kernel with the necessary information to find and iterate over the array of preserved File-Lifecycle-Bound objects and to manage the underlying memory.h](hCThis structure is located at the physical address specified by the }(hjhhhNhNubj)}(h`LUO_FDT_FLB_HEADER`h]hLUO_FDT_FLB_HEADER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh FDT property. It provides the new kernel with the necessary information to find and iterate over the array of preserved File-Lifecycle-Bound objects and to manage the underlying memory.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hFIf this structure is modified, LUO_FDT_FLB_COMPATIBLE must be updated.h]hFIf this structure is modified, LUO_FDT_FLB_COMPATIBLE must be updated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_flb_ser (C struct) c.luo_flb_serhNtauh1j hj hhhjHhNubj )}(hhh](j )}(h luo_flb_serh]j )}(hstruct luo_flb_serh](j )}(hj h]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhKubj )}(h luo_flb_serh]j$ )}(hjh]h luo_flb_ser}(hjhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjhhhjhKubah}(h]jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjhKhjhhubjP )}(hhh]h)}(h7Represents the serialized state of a single FLB object.h]h7Represents the serialized state of a single FLB object.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj5hhubah}(h]h ]h"]h$]h&]uh1jO hjhhhjhKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq jPjr jPjs jt ju uh1j hhhj hjHhNubjw )}(hX**Definition**:: struct luo_flb_ser { char name[LIVEUPDATE_FLB_COMPAT_LENGTH]; u64 data; u64 count; }; **Members** ``name`` The unique compatibility string of the FLB object, used to find the corresponding :c:type:`struct liveupdate_flb ` handler in the new kernel. ``data`` The opaque u64 handle returned by the FLB's .preserve() operation in the old kernel. This handle encapsulates the entire state needed for restoration. ``count`` The reference count at the time of serialization; i.e., the number of preserved files that depended on this FLB. This is used by the new kernel to correctly manage the FLB's lifecycle.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubh:}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubj{)}(hastruct luo_flb_ser { char name[LIVEUPDATE_FLB_COMPAT_LENGTH]; u64 data; u64 count; };h]hastruct luo_flb_ser { char name[LIVEUPDATE_FLB_COMPAT_LENGTH]; u64 data; u64 count; };}hjusbah}(h]h ]h"]h$]h&]hhuh1jzh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubh)}(h **Members**h]j )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjTubjK)}(hhh](jP)}(h``name`` The unique compatibility string of the FLB object, used to find the corresponding :c:type:`struct liveupdate_flb ` handler in the new kernel. h](jV)}(h``name``h]jq)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hThe unique compatibility string of the FLB object, used to find the corresponding :c:type:`struct liveupdate_flb ` handler in the new kernel.h](hRThe unique compatibility string of the FLB object, used to find the corresponding }(hjhhhNhNubh)}(h0:c:type:`struct liveupdate_flb `h]jq)}(hjh]hstruct liveupdate_flb}(hjhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjjliveupdate_flbuh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubh handler in the new kernel.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhjhKhjubjP)}(h``data`` The opaque u64 handle returned by the FLB's .preserve() operation in the old kernel. This handle encapsulates the entire state needed for restoration. h](jV)}(h``data``h]jq)}(hj h]hdata}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjubjg)}(hhh]h)}(hThe opaque u64 handle returned by the FLB's .preserve() operation in the old kernel. This handle encapsulates the entire state needed for restoration.h]hThe opaque u64 handle returned by the FLB’s .preserve() operation in the old kernel. This handle encapsulates the entire state needed for restoration.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj ubah}(h]h ]h"]h$]h&]uh1jfhjubeh}(h]h ]h"]h$]h&]uh1jOhj hKhjubjP)}(h``count`` The reference count at the time of serialization; i.e., the number of preserved files that depended on this FLB. This is used by the new kernel to correctly manage the FLB's lifecycle.h](jV)}(h ``count``h]jq)}(hj< h]hcount}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj: ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj6 ubjg)}(hhh]h)}(hThe reference count at the time of serialization; i.e., the number of preserved files that depended on this FLB. This is used by the new kernel to correctly manage the FLB's lifecycle.h]hThe reference count at the time of serialization; i.e., the number of preserved files that depended on this FLB. This is used by the new kernel to correctly manage the FLB’s lifecycle.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhjR ubah}(h]h ]h"]h$]h&]uh1jfhj6 ubeh}(h]h ]h"]h$]h&]uh1jOhjQ hKhjubeh}(h]h ]h"]h$]h&]uh1jJhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhjHhNubh)}(h**Description**h]j )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj} ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hAn array of these structures is created in a preserved memory region and passed to the new kernel. Each entry allows the LUO core to restore one global, shared object.h]hAn array of these structures is created in a preserved memory region and passed to the new kernel. Each entry allows the LUO core to restore one global, shared object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubh)}(hFIf this structure is modified, LUO_FDT_FLB_COMPATIBLE must be updated.h]hFIf this structure is modified, LUO_FDT_FLB_COMPATIBLE must be updated.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:42: ./include/linux/kho/abi/luo.hhKhj hhubeh}(h] public-apiah ]h"] public apiah$]h&]uh1hhhhhhhhK'ubh)}(hhh](h)}(h Internal APIh]h Internal API}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK7ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j liveupdate_reboot (C function)c.liveupdate_reboothNtauh1j hj hhhNhNubj )}(hhh](j )}(hint liveupdate_reboot (void)h]j )}(hint liveupdate_reboot(void)h](hdesc_sig_keyword_type)}(hinth]hint}(hj hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j hj hhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKubj )}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj hhhj hKubj )}(hliveupdate_rebooth]j$ )}(hliveupdate_rebooth]hliveupdate_reboot}(hj !hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj!ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj hhhj hKubhdesc_parameterlist)}(h(void)h]hdesc_parameter)}(hvoidh]j )}(hvoidh]hvoid}(hj)!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%!ubah}(h]h ]h"]h$]h&]noemphhhuh1j#!hj!ubah}(h]h ]h"]h$]h&]hhuh1j!hj hhhj hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj hhhj hKubah}(h]j ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj hKhj hhubjP )}(hhh]h)}(h;Kernel reboot notifier for live update final serialization.h]h;Kernel reboot notifier for live update final serialization.}(hjS!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhjP!hhubah}(h]h ]h"]h$]h&]uh1jO hj hhhj hKubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jk!jr jk!js jt ju uh1j hhhj hNhNubjw )}(h**Parameters** ``void`` no arguments **Description** This function is invoked directly from the reboot() syscall pathway if kexec is in progress. If any callback fails, this function aborts KHO, undoes the freeze() callbacks, and returns an error.h](h)}(h**Parameters**h]j )}(hju!h]h Parameters}(hjw!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjs!ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhjo!ubjK)}(hhh]jP)}(h``void`` no arguments h](jV)}(h``void``h]jq)}(hj!h]hvoid}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj!ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj!ubjg)}(hhh]h)}(h no argumentsh]h no arguments}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jfhj!ubeh}(h]h ]h"]h$]h&]uh1jOhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jJhjo!ubh)}(h**Description**h]j )}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhjo!ubh)}(h\This function is invoked directly from the reboot() syscall pathway if kexec is in progress.h]h\This function is invoked directly from the reboot() syscall pathway if kexec is in progress.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhjo!ubh)}(heIf any callback fails, this function aborts KHO, undoes the freeze() callbacks, and returns an error.h]heIf any callback fails, this function aborts KHO, undoes the freeze() callbacks, and returns an error.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhjo!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j liveupdate_enabled (C function)c.liveupdate_enabledhNtauh1j hj hhhNhNubj )}(hhh](j )}(hbool liveupdate_enabled (void)h]j )}(hbool liveupdate_enabled(void)h](j )}(hboolh]hbool}(hj#"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"hhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKubj )}(h h]h }(hj2"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"hhhj1"hKubj )}(hliveupdate_enabledh]j$ )}(hliveupdate_enabledh]hliveupdate_enabled}(hjD"hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj@"ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj"hhhj1"hKubj!)}(h(void)h]j$!)}(hvoidh]j )}(hvoidh]hvoid}(hj`"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj\"ubah}(h]h ]h"]h$]h&]noemphhhuh1j#!hjX"ubah}(h]h ]h"]h$]h&]hhuh1j!hj"hhhj1"hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj"hhhj1"hKubah}(h]j"ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj1"hKhj"hhubjP )}(hhh]h)}(h,Check if the live update feature is enabled.h]h,Check if the live update feature is enabled.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"hhubah}(h]h ]h"]h$]h&]uh1jO hj"hhhj1"hKubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq j"jr j"js jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``void`` no arguments **Description** This function returns the state of the live update feature flag, which can be controlled via the ``liveupdate`` kernel command-line parameter. **return** true if live update is enabled, false otherwise.h](h)}(h**Parameters**h]j )}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"ubjK)}(hhh]jP)}(h``void`` no arguments h](jV)}(h``void``h]jq)}(hj"h]hvoid}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj"ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"ubjg)}(hhh]h)}(h no argumentsh]h no arguments}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jfhj"ubeh}(h]h ]h"]h$]h&]uh1jOhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jJhj"ubh)}(h**Description**h]j )}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"ubh)}(hThis function returns the state of the live update feature flag, which can be controlled via the ``liveupdate`` kernel command-line parameter.h](haThis function returns the state of the live update feature flag, which can be controlled via the }(hj#hhhNhNubjq)}(h``liveupdate``h]h liveupdate}(hj$#hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj#ubh kernel command-line parameter.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"ubh)}(h;**return** true if live update is enabled, false otherwise.h](j )}(h **return**h]hreturn}(hjA#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=#ubh1 true if live update is enabled, false otherwise.}(hj=#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:56: ./kernel/liveupdate/luo_core.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j "luo_flb_file_preserve (C function)c.luo_flb_file_preservehNtauh1j hj hhhNhNubj )}(hhh](j )}(h>int luo_flb_file_preserve (struct liveupdate_file_handler *fh)h]j )}(h=int luo_flb_file_preserve(struct liveupdate_file_handler *fh)h](j )}(hinth]hint}(hjz#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjv#hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKubj )}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjv#hhhj#hKubj )}(hluo_flb_file_preserveh]j$ )}(hluo_flb_file_preserveh]hluo_flb_file_preserve}(hj#hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj#ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjv#hhhj#hKubj!)}(h$(struct liveupdate_file_handler *fh)h]j$!)}(h"struct liveupdate_file_handler *fhh](j )}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#ubj )}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#ubh)}(hhh]j$ )}(hliveupdate_file_handlerh]hliveupdate_file_handler}(hj#hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj#ubah}(h]h ]h"]h$]h&] refdomainj}reftype identifier reftargetj#modnameN classnameNjj)}j]j ASTIdentifier)}j#j#sbc.luo_flb_file_preserveasbuh1hhj#ubj )}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#ubhdesc_sig_punctuation)}(h*h]h*}(hj$hhhNhNubah}(h]h ]pah"]h$]h&]uh1j$hj#ubj$ )}(hfhh]hfh}(hj$hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj#ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj#ubah}(h]h ]h"]h$]h&]hhuh1j!hjv#hhhj#hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjr#hhhj#hKubah}(h]jm#ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj#hKhjo#hhubjP )}(hhh]h)}(h3Notifies FLBs that a file is about to be preserved.h]h3Notifies FLBs that a file is about to be preserved.}(hjA$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj>$hhubah}(h]h ]h"]h$]h&]uh1jO hjo#hhhj#hKubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jY$jr jY$js jt ju uh1j hhhj hNhNubjw )}(hXa**Parameters** ``struct liveupdate_file_handler *fh`` The file handler for the preserved file. **Description** This function iterates through all FLBs associated with the given file handler. It increments the reference count for each FLB. If the count becomes 1, it triggers the FLB's .preserve() callback to save the global state. This operation is atomic. If any FLB's .preserve() op fails, it will roll back by calling .unpreserve() on any FLBs that were successfully preserved during this call. **Context** Called from luo_preserve_file() **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j )}(hjc$h]h Parameters}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hja$ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubjK)}(hhh]jP)}(hP``struct liveupdate_file_handler *fh`` The file handler for the preserved file. h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hj$h]h"struct liveupdate_file_handler *fh}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj$ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj|$ubjg)}(hhh]h)}(h(The file handler for the preserved file.h]h(The file handler for the preserved file.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jfhj|$ubeh}(h]h ]h"]h$]h&]uh1jOhj$hKhjy$ubah}(h]h ]h"]h$]h&]uh1jJhj]$ubh)}(h**Description**h]j )}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(hThis function iterates through all FLBs associated with the given file handler. It increments the reference count for each FLB. If the count becomes 1, it triggers the FLB's .preserve() callback to save the global state.h]hThis function iterates through all FLBs associated with the given file handler. It increments the reference count for each FLB. If the count becomes 1, it triggers the FLB’s .preserve() callback to save the global state.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(hThis operation is atomic. If any FLB's .preserve() op fails, it will roll back by calling .unpreserve() on any FLBs that were successfully preserved during this call.h]hThis operation is atomic. If any FLB’s .preserve() op fails, it will roll back by calling .unpreserve() on any FLBs that were successfully preserved during this call.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(h **Context**h]j )}(hj$h]hContext}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(hCalled from luo_preserve_file()h]hCalled from luo_preserve_file()}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(h **Return**h]j )}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hj0%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhj]$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j $luo_flb_file_unpreserve (C function)c.luo_flb_file_unpreservehNtauh1j hj hhhNhNubj )}(hhh](j )}(hAvoid luo_flb_file_unpreserve (struct liveupdate_file_handler *fh)h]j )}(h@void luo_flb_file_unpreserve(struct liveupdate_file_handler *fh)h](j )}(hvoidh]hvoid}(hj_%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj[%hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMubj )}(h h]h }(hjn%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj[%hhhjm%hMubj )}(hluo_flb_file_unpreserveh]j$ )}(hluo_flb_file_unpreserveh]hluo_flb_file_unpreserve}(hj%hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj|%ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj[%hhhjm%hMubj!)}(h$(struct liveupdate_file_handler *fh)h]j$!)}(h"struct liveupdate_file_handler *fhh](j )}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubj )}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubh)}(hhh]j$ )}(hliveupdate_file_handlerh]hliveupdate_file_handler}(hj%hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj%ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj%modnameN classnameNjj)}j]j#)}j#j%sbc.luo_flb_file_unpreserveasbuh1hhj%ubj )}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubj$)}(hj $h]h*}(hj%hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj%ubj$ )}(hfhh]hfh}(hj%hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj%ubah}(h]h ]h"]h$]h&]hhuh1j!hj[%hhhjm%hMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjW%hhhjm%hMubah}(h]jR%ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjm%hMhjT%hhubjP )}(hhh]h)}(h4Notifies FLBs that a dependent file was unpreserved.h]h4Notifies FLBs that a dependent file was unpreserved.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jO hjT%hhhjm%hMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq j7&jr j7&js jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct liveupdate_file_handler *fh`` The file handler for the unpreserved file. **Description** This function iterates through all FLBs associated with the given file handler, in reverse order of registration. It decrements the reference count for each FLB. If the count becomes 0, it triggers the FLB's .unpreserve() callback to clean up the global state. **Context** Called when a preserved file is being cleaned up before reboot (e.g., from luo_file_unpreserve_files()).h](h)}(h**Parameters**h]j )}(hjA&h]h Parameters}(hjC&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj?&ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj;&ubjK)}(hhh]jP)}(hR``struct liveupdate_file_handler *fh`` The file handler for the unpreserved file. h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hj`&h]h"struct liveupdate_file_handler *fh}(hjb&hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj^&ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjZ&ubjg)}(hhh]h)}(h*The file handler for the unpreserved file.h]h*The file handler for the unpreserved file.}(hjy&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju&hMhjv&ubah}(h]h ]h"]h$]h&]uh1jfhjZ&ubeh}(h]h ]h"]h$]h&]uh1jOhju&hMhjW&ubah}(h]h ]h"]h$]h&]uh1jJhj;&ubh)}(h**Description**h]j )}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj;&ubh)}(hXThis function iterates through all FLBs associated with the given file handler, in reverse order of registration. It decrements the reference count for each FLB. If the count becomes 0, it triggers the FLB's .unpreserve() callback to clean up the global state.h]hXThis function iterates through all FLBs associated with the given file handler, in reverse order of registration. It decrements the reference count for each FLB. If the count becomes 0, it triggers the FLB’s .unpreserve() callback to clean up the global state.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj;&ubh)}(h **Context**h]j )}(hj&h]hContext}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj;&ubh)}(hhCalled when a preserved file is being cleaned up before reboot (e.g., from luo_file_unpreserve_files()).h]hhCalled when a preserved file is being cleaned up before reboot (e.g., from luo_file_unpreserve_files()).}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj;&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_flb_file_finish (C function)c.luo_flb_file_finishhNtauh1j hj hhhNhNubj )}(hhh](j )}(h=void luo_flb_file_finish (struct liveupdate_file_handler *fh)h]j )}(h*hMzubj )}(hliveupdate_register_flbh]j$ )}(hliveupdate_register_flbh]hliveupdate_register_flb}(hjQ*hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjM*ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj,*hhhj>*hMzubj!)}(h@(struct liveupdate_file_handler *fh, struct liveupdate_flb *flb)h](j$!)}(h"struct liveupdate_file_handler *fhh](j )}(hj h]hstruct}(hjm*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hji*ubj )}(h h]h }(hjz*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hji*ubh)}(hhh]j$ )}(hliveupdate_file_handlerh]hliveupdate_file_handler}(hj*hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj*ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj*modnameN classnameNjj)}j]j#)}j#jS*sbc.liveupdate_register_flbasbuh1hhji*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hji*ubj$)}(hj $h]h*}(hj*hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hji*ubj$ )}(hfhh]hfh}(hj*hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hji*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hje*ubj$!)}(hstruct liveupdate_flb *flbh](j )}(hj h]hstruct}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj*ubh)}(hhh]j$ )}(hliveupdate_flbh]hliveupdate_flb}(hj*hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj*ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj*modnameN classnameNjj)}j]j*c.liveupdate_register_flbasbuh1hhj*ubj )}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj*ubj$)}(hj $h]h*}(hj)+hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj*ubj$ )}(hflbh]hflb}(hj6+hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hje*ubeh}(h]h ]h"]h$]h&]hhuh1j!hj,*hhhj>*hMzubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj(*hhhj>*hMzubah}(h]j#*ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj>*hMzhj%*hhubjP )}(hhh]h)}(h>Associate an FLB with a file handler and register it globally.h]h>Associate an FLB with a file handler and register it globally.}(hj`+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMzhj]+hhubah}(h]h ]h"]h$]h&]uh1jO hj%*hhhj>*hMzubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jx+jr jx+js jt ju uh1j hhhj hNhNubjw )}(hX7**Parameters** ``struct liveupdate_file_handler *fh`` The file handler that will now depend on the FLB. ``struct liveupdate_flb *flb`` The File-Lifecycle-Bound object to associate. **Description** Establishes a dependency, informing the LUO core that whenever a file of type **fh** is preserved, the state of **flb** must also be managed. On the first registration of a given **flb** object, it is added to a global registry. This function checks for duplicate registrations, both for a specific handler and globally, and ensures the total number of unique FLBs does not exceed the system limit. **Context** Typically called from a subsystem's module init function after both the handler and the FLB have been defined and initialized. **Return** 0 on success. Returns a negative errno on failure: -EINVAL if arguments are NULL or not initialized. -ENOMEM on memory allocation failure. -EEXIST if this FLB is already registered with this handler. -ENOSPC if the maximum number of global FLBs has been reached. -EOPNOTSUPP if live update is disabled or not configured.h](h)}(h**Parameters**h]j )}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj+ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM~hj|+ubjK)}(hhh](jP)}(hY``struct liveupdate_file_handler *fh`` The file handler that will now depend on the FLB. h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hj+h]h"struct liveupdate_file_handler *fh}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj+ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM{hj+ubjg)}(hhh]h)}(h1The file handler that will now depend on the FLB.h]h1The file handler that will now depend on the FLB.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM{hj+ubah}(h]h ]h"]h$]h&]uh1jfhj+ubeh}(h]h ]h"]h$]h&]uh1jOhj+hM{hj+ubjP)}(hM``struct liveupdate_flb *flb`` The File-Lifecycle-Bound object to associate. h](jV)}(h``struct liveupdate_flb *flb``h]jq)}(hj+h]hstruct liveupdate_flb *flb}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj+ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM|hj+ubjg)}(hhh]h)}(h-The File-Lifecycle-Bound object to associate.h]h-The File-Lifecycle-Bound object to associate.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM|hj+ubah}(h]h ]h"]h$]h&]uh1jfhj+ubeh}(h]h ]h"]h$]h&]uh1jOhj+hM|hj+ubeh}(h]h ]h"]h$]h&]uh1jJhj|+ubh)}(h**Description**h]j )}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM~hj|+ubh)}(hEstablishes a dependency, informing the LUO core that whenever a file of type **fh** is preserved, the state of **flb** must also be managed.h](hNEstablishes a dependency, informing the LUO core that whenever a file of type }(hj+,hhhNhNubj )}(h**fh**h]hfh}(hj3,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj+,ubh is preserved, the state of }(hj+,hhhNhNubj )}(h**flb**h]hflb}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj+,ubh must also be managed.}(hj+,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM}hj|+ubh)}(hXOn the first registration of a given **flb** object, it is added to a global registry. This function checks for duplicate registrations, both for a specific handler and globally, and ensures the total number of unique FLBs does not exceed the system limit.h](h%On the first registration of a given }(hj^,hhhNhNubj )}(h**flb**h]hflb}(hjf,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj^,ubh object, it is added to a global registry. This function checks for duplicate registrations, both for a specific handler and globally, and ensures the total number of unique FLBs does not exceed the system limit.}(hj^,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj|+ubh)}(h **Context**h]j )}(hj,h]hContext}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj|+ubh)}(h~Typically called from a subsystem's module init function after both the handler and the FLB have been defined and initialized.h]hTypically called from a subsystem’s module init function after both the handler and the FLB have been defined and initialized.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj|+ubh)}(h **Return**h]j )}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj|+ubh)}(hX@0 on success. Returns a negative errno on failure: -EINVAL if arguments are NULL or not initialized. -ENOMEM on memory allocation failure. -EEXIST if this FLB is already registered with this handler. -ENOSPC if the maximum number of global FLBs has been reached. -EOPNOTSUPP if live update is disabled or not configured.h]hX@0 on success. Returns a negative errno on failure: -EINVAL if arguments are NULL or not initialized. -ENOMEM on memory allocation failure. -EEXIST if this FLB is already registered with this handler. -ENOSPC if the maximum number of global FLBs has been reached. -EOPNOTSUPP if live update is disabled or not configured.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj|+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j &liveupdate_unregister_flb (C function)c.liveupdate_unregister_flbhNtauh1j hj hhhNhNubj )}(hhh](j )}(h_void liveupdate_unregister_flb (struct liveupdate_file_handler *fh, struct liveupdate_flb *flb)h]j )}(h^void liveupdate_unregister_flb(struct liveupdate_file_handler *fh, struct liveupdate_flb *flb)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj,hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.c!hMubj )}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj,hhhj,hMubj )}(hliveupdate_unregister_flbh]j$ )}(hliveupdate_unregister_flbh]hliveupdate_unregister_flb}(hj-hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj -ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj,hhhj,hMubj!)}(h@(struct liveupdate_file_handler *fh, struct liveupdate_flb *flb)h](j$!)}(h"struct liveupdate_file_handler *fhh](j )}(hj h]hstruct}(hj*-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj&-ubj )}(h h]h }(hj7-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj&-ubh)}(hhh]j$ )}(hliveupdate_file_handlerh]hliveupdate_file_handler}(hjH-hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjE-ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjJ-modnameN classnameNjj)}j]j#)}j#j-sbc.liveupdate_unregister_flbasbuh1hhj&-ubj )}(h h]h }(hjh-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj&-ubj$)}(hj $h]h*}(hjv-hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj&-ubj$ )}(hfhh]hfh}(hj-hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj&-ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj"-ubj$!)}(hstruct liveupdate_flb *flbh](j )}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj-ubj )}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj-ubh)}(hhh]j$ )}(hliveupdate_flbh]hliveupdate_flb}(hj-hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj-ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj-modnameN classnameNjj)}j]jd-c.liveupdate_unregister_flbasbuh1hhj-ubj )}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj-ubj$)}(hj $h]h*}(hj-hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj-ubj$ )}(hflbh]hflb}(hj-hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj-ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj"-ubeh}(h]h ]h"]h$]h&]hhuh1j!hj,hhhj,hMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj,hhhj,hMubah}(h]j,ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj,hMhj,hhubjP )}(hhh]h)}(h-Remove an FLB dependency from a file handler.h]h-Remove an FLB dependency from a file handler.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj.hhubah}(h]h ]h"]h$]h&]uh1jO hj,hhhj,hMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq j5.jr j5.js jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct liveupdate_file_handler *fh`` The file handler that is currently depending on the FLB. ``struct liveupdate_flb *flb`` The File-Lifecycle-Bound object to remove. **Description** Removes the association between the specified file handler and the FLB previously established by liveupdate_register_flb(). This function manages the global lifecycle of the FLB. It decrements the FLB's usage count. If this was the last file handler referencing this FLB, the FLB is removed from the global registry and the reference to its owner module (acquired during registration) is released. **Context** It is typically called from a subsystem's module exit function.h](h)}(h**Parameters**h]j )}(hj?.h]h Parameters}(hjA.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=.ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubjK)}(hhh](jP)}(h```struct liveupdate_file_handler *fh`` The file handler that is currently depending on the FLB. h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hj^.h]h"struct liveupdate_file_handler *fh}(hj`.hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj\.ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjX.ubjg)}(hhh]h)}(h8The file handler that is currently depending on the FLB.h]h8The file handler that is currently depending on the FLB.}(hjw.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs.hMhjt.ubah}(h]h ]h"]h$]h&]uh1jfhjX.ubeh}(h]h ]h"]h$]h&]uh1jOhjs.hMhjU.ubjP)}(hJ``struct liveupdate_flb *flb`` The File-Lifecycle-Bound object to remove. h](jV)}(h``struct liveupdate_flb *flb``h]jq)}(hj.h]hstruct liveupdate_flb *flb}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj.ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj.ubjg)}(hhh]h)}(h*The File-Lifecycle-Bound object to remove.h]h*The File-Lifecycle-Bound object to remove.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jfhj.ubeh}(h]h ]h"]h$]h&]uh1jOhj.hMhjU.ubeh}(h]h ]h"]h$]h&]uh1jJhj9.ubh)}(h**Description**h]j )}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj.ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubh)}(h{Removes the association between the specified file handler and the FLB previously established by liveupdate_register_flb().h]h{Removes the association between the specified file handler and the FLB previously established by liveupdate_register_flb().}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubh)}(hXThis function manages the global lifecycle of the FLB. It decrements the FLB's usage count. If this was the last file handler referencing this FLB, the FLB is removed from the global registry and the reference to its owner module (acquired during registration) is released.h]hXThis function manages the global lifecycle of the FLB. It decrements the FLB’s usage count. If this was the last file handler referencing this FLB, the FLB is removed from the global registry and the reference to its owner module (acquired during registration) is released.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubh)}(h **Context**h]j )}(hj/h]hContext}(hj /hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj/ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubh)}(h?It is typically called from a subsystem's module exit function.h]hAIt is typically called from a subsystem’s module exit function.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj9.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j (liveupdate_flb_get_incoming (C function)c.liveupdate_flb_get_incominghNtauh1j hj hhhNhNubj )}(hhh](j )}(hIint liveupdate_flb_get_incoming (struct liveupdate_flb *flb, void **objp)h]j )}(hHint liveupdate_flb_get_incoming(struct liveupdate_flb *flb, void **objp)h](j )}(hinth]hint}(hjM/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjI/hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMubj )}(h h]h }(hj\/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjI/hhhj[/hMubj )}(hliveupdate_flb_get_incomingh]j$ )}(hliveupdate_flb_get_incomingh]hliveupdate_flb_get_incoming}(hjn/hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjj/ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjI/hhhj[/hMubj!)}(h)(struct liveupdate_flb *flb, void **objp)h](j$!)}(hstruct liveupdate_flb *flbh](j )}(hj h]hstruct}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubj )}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubh)}(hhh]j$ )}(hliveupdate_flbh]hliveupdate_flb}(hj/hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj/ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj/modnameN classnameNjj)}j]j#)}j#jp/sbc.liveupdate_flb_get_incomingasbuh1hhj/ubj )}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubj$)}(hj $h]h*}(hj/hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj/ubj$ )}(hflbh]hflb}(hj/hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj/ubj$!)}(h void **objph](j )}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubj )}(h h]h }(hj 0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubj$)}(hj $h]h*}(hj0hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj/ubj$)}(hj $h]h*}(hj%0hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj/ubj$ )}(hobjph]hobjp}(hj20hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj/ubeh}(h]h ]h"]h$]h&]hhuh1j!hjI/hhhj[/hMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjE/hhhj[/hMubah}(h]j@/ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj[/hMhjB/hhubjP )}(hhh]h)}(h!Retrieve the incoming FLB object.h]h!Retrieve the incoming FLB object.}(hj\0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjY0hhubah}(h]h ]h"]h$]h&]uh1jO hjB/hhhj[/hMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jt0jr jt0js jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct liveupdate_flb *flb`` The FLB definition. ``void **objp`` Output parameter; will be populated with the live shared object. **Description** Returns a pointer to its shared live object for the incoming (post-reboot) path. 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. Subsequent calls will return the same cached object. **Return** 0 on success, or a negative errno on failure. -ENODATA means no incoming FLB data, -ENOENT means specific flb not found in the incoming data, -ENODEV if the FLB's module is unloading, and -EOPNOTSUPP when live update is disabled or not configured.h](h)}(h**Parameters**h]j )}(hj~0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj|0ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubjK)}(hhh](jP)}(h3``struct liveupdate_flb *flb`` The FLB definition. h](jV)}(h``struct liveupdate_flb *flb``h]jq)}(hj0h]hstruct liveupdate_flb *flb}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj0ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj0ubjg)}(hhh]h)}(hThe FLB definition.h]hThe FLB definition.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jfhj0ubeh}(h]h ]h"]h$]h&]uh1jOhj0hMhj0ubjP)}(hQ``void **objp`` Output parameter; will be populated with the live shared object. h](jV)}(h``void **objp``h]jq)}(hj0h]h void **objp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj0ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj0ubjg)}(hhh]h)}(h@Output parameter; will be populated with the live shared object.h]h@Output parameter; will be populated with the live shared object.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jfhj0ubeh}(h]h ]h"]h$]h&]uh1jOhj0hMhj0ubeh}(h]h ]h"]h$]h&]uh1jJhjx0ubh)}(h**Description**h]j )}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj1ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubh)}(hPReturns a pointer to its shared live object for the incoming (post-reboot) path.h]hPReturns a pointer to its shared live object for the incoming (post-reboot) path.}(hj'1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubh)}(hIf 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. Subsequent calls will return the same cached object.h]hIf 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. Subsequent calls will return the same cached object.}(hj61hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubh)}(h **Return**h]j )}(hjG1h]hReturn}(hjI1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjE1ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubh)}(h0 on success, or a negative errno on failure. -ENODATA means no incoming FLB data, -ENOENT means specific flb not found in the incoming data, -ENODEV if the FLB's module is unloading, and -EOPNOTSUPP when live update is disabled or not configured.h]h0 on success, or a negative errno on failure. -ENODATA means no incoming FLB data, -ENOENT means specific flb not found in the incoming data, -ENODEV if the FLB’s module is unloading, and -EOPNOTSUPP when live update is disabled or not configured.}(hj]1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjx0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j (liveupdate_flb_get_outgoing (C function)c.liveupdate_flb_get_outgoinghNtauh1j hj hhhNhNubj )}(hhh](j )}(hIint liveupdate_flb_get_outgoing (struct liveupdate_flb *flb, void **objp)h]j )}(hHint liveupdate_flb_get_outgoing(struct liveupdate_flb *flb, void **objp)h](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMubj )}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1hhhj1hMubj )}(hliveupdate_flb_get_outgoingh]j$ )}(hliveupdate_flb_get_outgoingh]hliveupdate_flb_get_outgoing}(hj1hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj1ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj1hhhj1hMubj!)}(h)(struct liveupdate_flb *flb, void **objp)h](j$!)}(hstruct liveupdate_flb *flbh](j )}(hj h]hstruct}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1ubj )}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1ubh)}(hhh]j$ )}(hliveupdate_flbh]hliveupdate_flb}(hj1hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj1ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj1modnameN classnameNjj)}j]j#)}j#j1sbc.liveupdate_flb_get_outgoingasbuh1hhj1ubj )}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1ubj$)}(hj $h]h*}(hj2hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj1ubj$ )}(hflbh]hflb}(hj"2hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj1ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj1ubj$!)}(h void **objph](j )}(hvoidh]hvoid}(hj;2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj72ubj )}(h h]h }(hjI2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj72ubj$)}(hj $h]h*}(hjW2hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj72ubj$)}(hj $h]h*}(hjd2hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj72ubj$ )}(hobjph]hobjp}(hjq2hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj72ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj1ubeh}(h]h ]h"]h$]h&]hhuh1j!hj1hhhj1hMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj1hhhj1hMubah}(h]j1ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj1hMhj1hhubjP )}(hhh]h)}(h!Retrieve the outgoing FLB object.h]h!Retrieve the outgoing FLB object.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jO hj1hhhj1hMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq j2jr j2js jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct liveupdate_flb *flb`` The FLB definition. ``void **objp`` Output parameter; will be populated with the live shared object. **Description** Returns a pointer to its shared live object for the outgoing (pre-reboot) path. This function assumes the object has already been created by the FLB's .preserve() callback, which is triggered when the first dependent file is preserved. **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j )}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj2ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubjK)}(hhh](jP)}(h3``struct liveupdate_flb *flb`` The FLB definition. h](jV)}(h``struct liveupdate_flb *flb``h]jq)}(hj2h]hstruct liveupdate_flb *flb}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj2ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubjg)}(hhh]h)}(hThe FLB definition.h]hThe FLB definition.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jfhj2ubeh}(h]h ]h"]h$]h&]uh1jOhj2hMhj2ubjP)}(hQ``void **objp`` Output parameter; will be populated with the live shared object. h](jV)}(h``void **objp``h]jq)}(hj3h]h void **objp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj3ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj3ubjg)}(hhh]h)}(h@Output parameter; will be populated with the live shared object.h]h@Output parameter; will be populated with the live shared object.}(hj.3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*3hMhj+3ubah}(h]h ]h"]h$]h&]uh1jfhj3ubeh}(h]h ]h"]h$]h&]uh1jOhj*3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jJhj2ubh)}(h**Description**h]j )}(hjP3h]h Description}(hjR3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjN3ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubh)}(hOReturns a pointer to its shared live object for the outgoing (pre-reboot) path.h]hOReturns a pointer to its shared live object for the outgoing (pre-reboot) path.}(hjf3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubh)}(hThis function assumes the object has already been created by the FLB's .preserve() callback, which is triggered when the first dependent file is preserved.h]hThis function assumes the object has already been created by the FLB’s .preserve() callback, which is triggered when the first dependent file is preserved.}(hju3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubh)}(h **Return**h]j )}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj3ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_flb_serialize (C function)c.luo_flb_serializehNtauh1j hj hhhNhNubj )}(hhh](j )}(hvoid luo_flb_serialize (void)h]j )}(hvoid luo_flb_serialize(void)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj3hhh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMyubj )}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj3hhhj3hMyubj )}(hluo_flb_serializeh]j$ )}(hluo_flb_serializeh]hluo_flb_serialize}(hj3hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj3ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj3hhhj3hMyubj!)}(h(void)h]j$!)}(hvoidh]j )}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]noemphhhuh1j#!hj4ubah}(h]h ]h"]h$]h&]hhuh1j!hj3hhhj3hMyubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj3hhhj3hMyubah}(h]j3ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj3hMyhj3hhubjP )}(hhh]h)}(h*Serializes all active FLB objects for KHO.h]h*Serializes all active FLB objects for KHO.}(hj24hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMyhj/4hhubah}(h]h ]h"]h$]h&]uh1jO hj3hhhj3hMyubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jJ4jr jJ4js jt ju uh1j hhhj hNhNubjw )}(hXm**Parameters** ``void`` no arguments **Description** This function is called from the reboot path. It iterates through all registered File-Lifecycle-Bound (FLB) objects. For each FLB that has been preserved (i.e., its reference count is greater than zero), it writes its metadata into the memory region designated for Kexec Handover. The serialized data includes the FLB's compatibility string, its opaque data handle, and the final reference count. This allows the new kernel to find the appropriate handler and reconstruct the FLB's state. **Context** Called from liveupdate_reboot() just before kho_finalize().h](h)}(h**Parameters**h]j )}(hjT4h]h Parameters}(hjV4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjR4ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chM}hjN4ubjK)}(hhh]jP)}(h``void`` no arguments h](jV)}(h``void``h]jq)}(hjs4h]hvoid}(hju4hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjq4ubah}(h]h ]h"]h$]h&]uh1jUh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhjm4ubjg)}(hhh]h)}(h no argumentsh]h no arguments}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jfhjm4ubeh}(h]h ]h"]h$]h&]uh1jOhj4hKhjj4ubah}(h]h ]h"]h$]h&]uh1jJhjN4ubh)}(h**Description**h]j )}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chKhjN4ubh)}(hXThis function is called from the reboot path. It iterates through all registered File-Lifecycle-Bound (FLB) objects. For each FLB that has been preserved (i.e., its reference count is greater than zero), it writes its metadata into the memory region designated for Kexec Handover.h]hXThis function is called from the reboot path. It iterates through all registered File-Lifecycle-Bound (FLB) objects. For each FLB that has been preserved (i.e., its reference count is greater than zero), it writes its metadata into the memory region designated for Kexec Handover.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMzhjN4ubh)}(hThe serialized data includes the FLB's compatibility string, its opaque data handle, and the final reference count. This allows the new kernel to find the appropriate handler and reconstruct the FLB's state.h]hThe serialized data includes the FLB’s compatibility string, its opaque data handle, and the final reference count. This allows the new kernel to find the appropriate handler and reconstruct the FLB’s state.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjN4ubh)}(h **Context**h]j )}(hj4h]hContext}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjN4ubh)}(h;Called from liveupdate_reboot() just before kho_finalize().h]h;Called from liveupdate_reboot() just before kho_finalize().}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:59: ./kernel/liveupdate/luo_flb.chMhjN4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_session_header (C struct)c.luo_session_headerhNtauh1j hj hhhNhNubj )}(hhh](j )}(hluo_session_headerh]j )}(hstruct luo_session_headerh](j )}(hj h]hstruct}(hj)5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%5hhhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKubj )}(h h]h }(hj75hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%5hhhj65hKubj )}(hluo_session_headerh]j$ )}(hj#5h]hluo_session_header}(hjI5hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjE5ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj%5hhhj65hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj!5hhhj65hKubah}(h]j5ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj65hKhj5hhubjP )}(hhh]h)}(h(Header struct for managing LUO sessions.h]h(Header struct for managing LUO sessions.}(hjk5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKOhjh5hhubah}(h]h ]h"]h$]h&]uh1jO hj5hhhj65hKubeh}(h]h ](j}structeh"]h$]h&]jp j}jq j5jr j5js jt ju uh1j hhhj hNhNubjw )}(hX**Definition**:: struct luo_session_header { long count; struct list_head list; struct rw_semaphore rwsem; struct luo_session_header_ser *header_ser; struct luo_session_ser *ser; bool active; }; **Members** ``count`` The number of sessions currently tracked in the **list**. ``list`` The head of the linked list of `struct luo_session` instances. ``rwsem`` A read-write semaphore providing synchronized access to the session list and other fields in this structure. ``header_ser`` The header data of serialization array. ``ser`` The serialized session data (an array of `struct luo_session_ser`). ``active`` Set to true when first initialized. If previous kernel did not send session data, active stays false for incoming.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj5ubh:}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKShj5ubj{)}(hstruct luo_session_header { long count; struct list_head list; struct rw_semaphore rwsem; struct luo_session_header_ser *header_ser; struct luo_session_ser *ser; bool active; };h]hstruct luo_session_header { long count; struct list_head list; struct rw_semaphore rwsem; struct luo_session_header_ser *header_ser; struct luo_session_ser *ser; bool active; };}hj5sbah}(h]h ]h"]h$]h&]hhuh1jzhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKUhj5ubh)}(h **Members**h]j )}(hj5h]hMembers}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj5ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chK^hj5ubjK)}(hhh](jP)}(hD``count`` The number of sessions currently tracked in the **list**. h](jV)}(h ``count``h]jq)}(hj5h]hcount}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj5ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKQhj5ubjg)}(hhh]h)}(h9The number of sessions currently tracked in the **list**.h](h0The number of sessions currently tracked in the }(hj5hhhNhNubj )}(h**list**h]hlist}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hKQhj5ubah}(h]h ]h"]h$]h&]uh1jfhj5ubeh}(h]h ]h"]h$]h&]uh1jOhj5hKQhj5ubjP)}(hH``list`` The head of the linked list of `struct luo_session` instances. h](jV)}(h``list``h]jq)}(hj#6h]hlist}(hj%6hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj!6ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKRhj6ubjg)}(hhh]h)}(h>The head of the linked list of `struct luo_session` instances.h](hThe head of the linked list of }(hj<6hhhNhNubj)}(h`struct luo_session`h]hstruct luo_session}(hjD6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<6ubh instances.}(hj<6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj86hKRhj96ubah}(h]h ]h"]h$]h&]uh1jfhj6ubeh}(h]h ]h"]h$]h&]uh1jOhj86hKRhj5ubjP)}(hw``rwsem`` A read-write semaphore providing synchronized access to the session list and other fields in this structure. h](jV)}(h ``rwsem``h]jq)}(hjn6h]hrwsem}(hjp6hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjl6ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKThjh6ubjg)}(hhh]h)}(hlA read-write semaphore providing synchronized access to the session list and other fields in this structure.h]hlA read-write semaphore providing synchronized access to the session list and other fields in this structure.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKShj6ubah}(h]h ]h"]h$]h&]uh1jfhjh6ubeh}(h]h ]h"]h$]h&]uh1jOhj6hKThj5ubjP)}(h7``header_ser`` The header data of serialization array. h](jV)}(h``header_ser``h]jq)}(hj6h]h header_ser}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj6ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKUhj6ubjg)}(hhh]h)}(h'The header data of serialization array.h]h'The header data of serialization array.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKUhj6ubah}(h]h ]h"]h$]h&]uh1jfhj6ubeh}(h]h ]h"]h$]h&]uh1jOhj6hKUhj5ubjP)}(hL``ser`` The serialized session data (an array of `struct luo_session_ser`). h](jV)}(h``ser``h]jq)}(hj6h]hser}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj6ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKWhj6ubjg)}(hhh]h)}(hCThe serialized session data (an array of `struct luo_session_ser`).h](h)The serialized session data (an array of }(hj6hhhNhNubj)}(h`struct luo_session_ser`h]hstruct luo_session_ser}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh).}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKVhj6ubah}(h]h ]h"]h$]h&]uh1jfhj6ubeh}(h]h ]h"]h$]h&]uh1jOhj6hKWhj5ubjP)}(h}``active`` Set to true when first initialized. If previous kernel did not send session data, active stays false for incoming.h](jV)}(h ``active``h]jq)}(hj-7h]hactive}(hj/7hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj+7ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKXhj'7ubjg)}(hhh]h)}(hrSet to true when first initialized. If previous kernel did not send session data, active stays false for incoming.h]hrSet to true when first initialized. If previous kernel did not send session data, active stays false for incoming.}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB7hKXhjC7ubah}(h]h ]h"]h$]h&]uh1jfhj'7ubeh}(h]h ]h"]h$]h&]uh1jOhjB7hKXhj5ubeh}(h]h ]h"]h$]h&]uh1jJhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_session_global (C struct)c.luo_session_globalhNtauh1j hj hhhNhNubj )}(hhh](j )}(hluo_session_globalh]j )}(hstruct luo_session_globalh](j )}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7hhhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chK_ubj )}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7hhhj7hK_ubj )}(hluo_session_globalh]j$ )}(hj7h]hluo_session_global}(hj7hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj7ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj7hhhj7hK_ubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj~7hhhj7hK_ubah}(h]jy7ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj7hK_hj{7hhubjP )}(hhh]h)}(h+Global container for managing LUO sessions.h]h+Global container for managing LUO sessions.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKdhj7hhubah}(h]h ]h"]h$]h&]uh1jO hj{7hhhj7hK_ubeh}(h]h ](j}structeh"]h$]h&]jp j}jq j7jr j7js jt ju uh1j hhhj hNhNubjw )}(hX **Definition**:: struct luo_session_global { struct luo_session_header incoming; struct luo_session_header outgoing; }; **Members** ``incoming`` The sessions passed from the previous kernel. ``outgoing`` The sessions that are going to be passed to the next kernel.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj7ubh:}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKhhj7ubj{)}(hnstruct luo_session_global { struct luo_session_header incoming; struct luo_session_header outgoing; };h]hnstruct luo_session_global { struct luo_session_header incoming; struct luo_session_header outgoing; };}hj8sbah}(h]h ]h"]h$]h&]hhuh1jzhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKjhj7ubh)}(h **Members**h]j )}(hj8h]hMembers}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKohj7ubjK)}(hhh](jP)}(h;``incoming`` The sessions passed from the previous kernel. h](jV)}(h ``incoming``h]jq)}(hj58h]hincoming}(hj78hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj38ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKfhj/8ubjg)}(hhh]h)}(h-The sessions passed from the previous kernel.h]h-The sessions passed from the previous kernel.}(hjN8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ8hKfhjK8ubah}(h]h ]h"]h$]h&]uh1jfhj/8ubeh}(h]h ]h"]h$]h&]uh1jOhjJ8hKfhj,8ubjP)}(hI``outgoing`` The sessions that are going to be passed to the next kernel.h](jV)}(h ``outgoing``h]jq)}(hjn8h]houtgoing}(hjp8hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjl8ubah}(h]h ]h"]h$]h&]uh1jUhc/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:62: ./kernel/liveupdate/luo_session.chKfhjh8ubjg)}(hhh]h)}(h` that manages this type of file. ``file`` Pointer to the kernel's :c:type:`struct file ` that is being preserved. This is NULL in the new kernel until the file is successfully retrieved. ``serialized_data`` The opaque u64 handle to the serialized state of the file. This handle is passed back to the handler's .freeze(), .retrieve(), and .finish() callbacks, allowing it to track and update its serialized state across phases. ``private_data`` Pointer to the private data for the file used to hold runtime state that is not preserved. Set by the handler's .preserve() callback, and must be freed in the handler's .unpreserve() callback. ``retrieve_status`` Status code indicating whether a user/kernel in the new kernel has successfully called retrieve() on this file. This prevents multiple retrieval attempts. A value of 0 means a retrieve() has not been attempted, a positive value means the retrieve() was successful, and a negative value means the retrieve() failed, and the value is the error code of the call. ``mutex`` A mutex that protects the fields of this specific instance (e.g., **retrieved**, **file**), ensuring that operations like retrieving or finishing a file are atomic. ``list`` The list_head linking this instance into its parent file_set's list of preserved files. ``token`` The user-provided unique token used to identify this file.h](h)}(h**Definition**::h](j )}(h**Definition**h]h Definition}(hj.9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*9ubh:}(hj*9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj&9ubj{)}(hstruct luo_file { struct liveupdate_file_handler *fh; struct file *file; u64 serialized_data; void *private_data; int retrieve_status; struct mutex mutex; struct list_head list; u64 token; };h]hstruct luo_file { struct liveupdate_file_handler *fh; struct file *file; u64 serialized_data; void *private_data; int retrieve_status; struct mutex mutex; struct list_head list; u64 token; };}hjG9sbah}(h]h ]h"]h$]h&]hhuh1jzh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj&9ubh)}(h **Members**h]j )}(hjX9h]hMembers}(hjZ9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjV9ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj&9ubjK)}(hhh](jP)}(hy``fh`` Pointer to the :c:type:`struct liveupdate_file_handler ` that manages this type of file. h](jV)}(h``fh``h]jq)}(hjw9h]hfh}(hjy9hhhNhNubah}(h]h ]h"]h$]h&]uh1jphju9ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjq9ubjg)}(hhh]h)}(hqPointer to the :c:type:`struct liveupdate_file_handler ` that manages this type of file.h](hPointer to the }(hj9hhhNhNubh)}(hB:c:type:`struct liveupdate_file_handler `h]jq)}(hj9h]hstruct liveupdate_file_handler}(hj9hhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjjliveupdate_file_handleruh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj9ubh that manages this type of file.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hKhj9ubah}(h]h ]h"]h$]h&]uh1jfhjq9ubeh}(h]h ]h"]h$]h&]uh1jOhj9hKhjn9ubjP)}(h``file`` Pointer to the kernel's :c:type:`struct file ` that is being preserved. This is NULL in the new kernel until the file is successfully retrieved. h](jV)}(h``file``h]jq)}(hj9h]hfile}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj9ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj9ubjg)}(hhh]h)}(hPointer to the kernel's :c:type:`struct file ` that is being preserved. This is NULL in the new kernel until the file is successfully retrieved.h](hPointer to the kernel’s }(hj9hhhNhNubh)}(h:c:type:`struct file `h]jq)}(hj9h]h struct file}(hj9hhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjjfileuh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj9ubhb that is being preserved. This is NULL in the new kernel until the file is successfully retrieved.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hKhj9ubah}(h]h ]h"]h$]h&]uh1jfhj9ubeh}(h]h ]h"]h$]h&]uh1jOhj9hKhjn9ubjP)}(h``serialized_data`` The opaque u64 handle to the serialized state of the file. This handle is passed back to the handler's .freeze(), .retrieve(), and .finish() callbacks, allowing it to track and update its serialized state across phases. h](jV)}(h``serialized_data``h]jq)}(hj1:h]hserialized_data}(hj3:hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj/:ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj+:ubjg)}(hhh]h)}(hThe opaque u64 handle to the serialized state of the file. This handle is passed back to the handler's .freeze(), .retrieve(), and .finish() callbacks, allowing it to track and update its serialized state across phases.h]hThe opaque u64 handle to the serialized state of the file. This handle is passed back to the handler’s .freeze(), .retrieve(), and .finish() callbacks, allowing it to track and update its serialized state across phases.}(hjJ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjG:ubah}(h]h ]h"]h$]h&]uh1jfhj+:ubeh}(h]h ]h"]h$]h&]uh1jOhjF:hKhjn9ubjP)}(h``private_data`` Pointer to the private data for the file used to hold runtime state that is not preserved. Set by the handler's .preserve() callback, and must be freed in the handler's .unpreserve() callback. h](jV)}(h``private_data``h]jq)}(hjk:h]h private_data}(hjm:hhhNhNubah}(h]h ]h"]h$]h&]uh1jphji:ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhje:ubjg)}(hhh]h)}(hPointer to the private data for the file used to hold runtime state that is not preserved. Set by the handler's .preserve() callback, and must be freed in the handler's .unpreserve() callback.h]hPointer to the private data for the file used to hold runtime state that is not preserved. Set by the handler’s .preserve() callback, and must be freed in the handler’s .unpreserve() callback.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj:ubah}(h]h ]h"]h$]h&]uh1jfhje:ubeh}(h]h ]h"]h$]h&]uh1jOhj:hKhjn9ubjP)}(hX|``retrieve_status`` Status code indicating whether a user/kernel in the new kernel has successfully called retrieve() on this file. This prevents multiple retrieval attempts. A value of 0 means a retrieve() has not been attempted, a positive value means the retrieve() was successful, and a negative value means the retrieve() failed, and the value is the error code of the call. h](jV)}(h``retrieve_status``h]jq)}(hj:h]hretrieve_status}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj:ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj:ubjg)}(hhh]h)}(hXgStatus code indicating whether a user/kernel in the new kernel has successfully called retrieve() on this file. This prevents multiple retrieval attempts. A value of 0 means a retrieve() has not been attempted, a positive value means the retrieve() was successful, and a negative value means the retrieve() failed, and the value is the error code of the call.h]hXgStatus code indicating whether a user/kernel in the new kernel has successfully called retrieve() on this file. This prevents multiple retrieval attempts. A value of 0 means a retrieve() has not been attempted, a positive value means the retrieve() was successful, and a negative value means the retrieve() failed, and the value is the error code of the call.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj:ubah}(h]h ]h"]h$]h&]uh1jfhj:ubeh}(h]h ]h"]h$]h&]uh1jOhj:hKhjn9ubjP)}(h``mutex`` A mutex that protects the fields of this specific instance (e.g., **retrieved**, **file**), ensuring that operations like retrieving or finishing a file are atomic. h](jV)}(h ``mutex``h]jq)}(hj:h]hmutex}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj:ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj:ubjg)}(hhh]h)}(hA mutex that protects the fields of this specific instance (e.g., **retrieved**, **file**), ensuring that operations like retrieving or finishing a file are atomic.h](hBA mutex that protects the fields of this specific instance (e.g., }(hj:hhhNhNubj )}(h **retrieved**h]h retrieved}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:ubh, }(hj:hhhNhNubj )}(h**file**h]hfile}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:ubhK), ensuring that operations like retrieving or finishing a file are atomic.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj:ubah}(h]h ]h"]h$]h&]uh1jfhj:ubeh}(h]h ]h"]h$]h&]uh1jOhj:hKhjn9ubjP)}(ha``list`` The list_head linking this instance into its parent file_set's list of preserved files. h](jV)}(h``list``h]jq)}(hj=;h]hlist}(hj?;hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj;;ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj7;ubjg)}(hhh]h)}(hWThe list_head linking this instance into its parent file_set's list of preserved files.h]hYThe list_head linking this instance into its parent file_set’s list of preserved files.}(hjV;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjS;ubah}(h]h ]h"]h$]h&]uh1jfhj7;ubeh}(h]h ]h"]h$]h&]uh1jOhjR;hKhjn9ubjP)}(hD``token`` The user-provided unique token used to identify this file.h](jV)}(h ``token``h]jq)}(hjw;h]htoken}(hjy;hhhNhNubah}(h]h ]h"]h$]h&]uh1jphju;ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjq;ubjg)}(hhh]h)}(h:The user-provided unique token used to identify this file.h]h:The user-provided unique token used to identify this file.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj;ubah}(h]h ]h"]h$]h&]uh1jfhjq;ubeh}(h]h ]h"]h$]h&]uh1jOhj;hKhjn9ubeh}(h]h ]h"]h$]h&]uh1jJhj&9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubh)}(h**Description**h]j )}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj;ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj hhubh)}(hX5This structure is the core in-kernel representation of a single file being managed through a live update. An instance is created by luo_preserve_file() to link a 'struct file' to its corresponding handler, a user-provided token, and the serialized state handle returned by the handler's .preserve() operation.h]hX;This structure is the core in-kernel representation of a single file being managed through a live update. An instance is created by luo_preserve_file() to link a ‘struct file’ to its corresponding handler, a user-provided token, and the serialized state handle returned by the handler’s .preserve() operation.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj hhubh)}(hXYThese instances are tracked in a per-file_set list. The **serialized_data** field, which holds a handle to the file's serialized state, may be updated during the .freeze() callback before being serialized for the next kernel. After reboot, these structures are recreated by luo_file_deserialize() and are finally cleaned up by luo_file_finish().h](h8These instances are tracked in a per-file_set list. The }(hj;hhhNhNubj )}(h**serialized_data**h]hserialized_data}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj;ubhX field, which holds a handle to the file’s serialized state, may be updated during the .freeze() callback before being serialized for the next kernel. After reboot, these structures are recreated by luo_file_deserialize() and are finally cleaned up by luo_file_finish().}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_preserve_file (C function)c.luo_preserve_filehNtauh1j hj hhhNhNubj )}(hhh](j )}(hHint luo_preserve_file (struct luo_file_set *file_set, u64 token, int fd)h]j )}(hGint luo_preserve_file(struct luo_file_set *file_set, u64 token, int fd)h](j )}(hinth]hint}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj<hhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKubj )}(h h]h }(hj(<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj<hhhj'<hKubj )}(hluo_preserve_fileh]j$ )}(hluo_preserve_fileh]hluo_preserve_file}(hj:<hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj6<ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj<hhhj'<hKubj!)}(h2(struct luo_file_set *file_set, u64 token, int fd)h](j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hjV<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjR<ubj )}(h h]h }(hjc<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjR<ubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hjt<hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjq<ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjv<modnameN classnameNjj)}j]j#)}j#j<<sbc.luo_preserve_fileasbuh1hhjR<ubj )}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjR<ubj$)}(hj $h]h*}(hj<hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjR<ubj$ )}(hfile_seth]hfile_set}(hj<hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjR<ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjN<ubj$!)}(h u64 tokenh](h)}(hhh]j$ )}(hu64h]hu64}(hj<hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj<ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj<modnameN classnameNjj)}j]j<c.luo_preserve_fileasbuh1hhj<ubj )}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj<ubj$ )}(htokenh]htoken}(hj<hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjN<ubj$!)}(hint fdh](j )}(hinth]hint}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj =ubj )}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj =ubj$ )}(hfdh]hfd}(hj,=hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj =ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjN<ubeh}(h]h ]h"]h$]h&]hhuh1j!hj<hhhj'<hKubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj<hhhj'<hKubah}(h]j <ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj'<hKhj<hhubjP )}(hhh]h)}(h/Initiate the preservation of a file descriptor.h]h/Initiate the preservation of a file descriptor.}(hjV=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjS=hhubah}(h]h ]h"]h$]h&]uh1jO hj<hhhj'<hKubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jn=jr jn=js jt ju uh1j hhhj hNhNubjw )}(hX[**Parameters** ``struct luo_file_set *file_set`` The file_set to which the preserved file will be added. ``u64 token`` A unique, user-provided identifier for the file. ``int fd`` The file descriptor to be preserved. **Description** This function orchestrates the first phase of preserving a file. Upon entry, it takes a reference to the 'struct file' via fget(), effectively making LUO a co-owner of the file. This reference is held until the file is either unpreserved or successfully finished in the next kernel, preventing the file from being prematurely destroyed. This function orchestrates the first phase of preserving a file. It performs the following steps: 1. Validates that the **token** is not already in use within the file_set. 2. Ensures the file_set's memory for files serialization is allocated (allocates if needed). 3. Iterates through registered handlers, calling can_preserve() to find one compatible with the given **fd**. 4. Calls the handler's .preserve() operation, which saves the file's state and returns an opaque private data handle. 5. Adds the new instance to the file_set's internal list. On success, LUO takes a reference to the 'struct file' and considers it under its management until it is unpreserved or finished. In case of any failure, all intermediate allocations (file reference, memory for the 'luo_file' struct, etc.) are cleaned up before returning an error. **Context** Can be called from an ioctl handler during normal system operation. **Return** 0 on success. Returns a negative errno on failure: -EEXIST if the token is already used. -EBUSY if the file descriptor is already preserved by another session. -EBADF if the file descriptor is invalid. -ENOSPC if the file_set is full. -ENOENT if no compatible handler is found. -ENOMEM on memory allocation failure. Other erros might be returned by .preserve().h](h)}(h**Parameters**h]j )}(hjx=h]h Parameters}(hjz=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjv=ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubjK)}(hhh](jP)}(hZ``struct luo_file_set *file_set`` The file_set to which the preserved file will be added. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hj=h]hstruct luo_file_set *file_set}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj=ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj=ubjg)}(hhh]h)}(h7The file_set to which the preserved file will be added.h]h7The file_set to which the preserved file will be added.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jfhj=ubeh}(h]h ]h"]h$]h&]uh1jOhj=hKhj=ubjP)}(h?``u64 token`` A unique, user-provided identifier for the file. h](jV)}(h ``u64 token``h]jq)}(hj=h]h u64 token}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj=ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj=ubjg)}(hhh]h)}(h0A unique, user-provided identifier for the file.h]h0A unique, user-provided identifier for the file.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jfhj=ubeh}(h]h ]h"]h$]h&]uh1jOhj=hKhj=ubjP)}(h0``int fd`` The file descriptor to be preserved. h](jV)}(h ``int fd``h]jq)}(hj >h]hint fd}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj>ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj>ubjg)}(hhh]h)}(h$The file descriptor to be preserved.h]h$The file descriptor to be preserved.}(hj">hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jfhj>ubeh}(h]h ]h"]h$]h&]uh1jOhj>hKhj=ubeh}(h]h ]h"]h$]h&]uh1jJhjr=ubh)}(h**Description**h]j )}(hjD>h]h Description}(hjF>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjB>ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubh)}(hXPThis function orchestrates the first phase of preserving a file. Upon entry, it takes a reference to the 'struct file' via fget(), effectively making LUO a co-owner of the file. This reference is held until the file is either unpreserved or successfully finished in the next kernel, preventing the file from being prematurely destroyed.h]hXTThis function orchestrates the first phase of preserving a file. Upon entry, it takes a reference to the ‘struct file’ via fget(), effectively making LUO a co-owner of the file. This reference is held until the file is either unpreserved or successfully finished in the next kernel, preventing the file from being prematurely destroyed.}(hjZ>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubh)}(haThis function orchestrates the first phase of preserving a file. It performs the following steps:h]haThis function orchestrates the first phase of preserving a file. It performs the following steps:}(hji>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubjN)}(hhh](j)}(hGValidates that the **token** is not already in use within the file_set.h]h)}(hj}>h](hValidates that the }(hj>hhhNhNubj )}(h **token**h]htoken}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj>ubh+ is not already in use within the file_set.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj{>ubah}(h]h ]h"]h$]h&]uh1jhjx>ubj)}(hYEnsures the file_set's memory for files serialization is allocated (allocates if needed).h]h)}(hYEnsures the file_set's memory for files serialization is allocated (allocates if needed).h]h[Ensures the file_set’s memory for files serialization is allocated (allocates if needed).}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj>ubah}(h]h ]h"]h$]h&]uh1jhjx>ubj)}(hjIterates through registered handlers, calling can_preserve() to find one compatible with the given **fd**.h]h)}(hjIterates through registered handlers, calling can_preserve() to find one compatible with the given **fd**.h](hcIterates through registered handlers, calling can_preserve() to find one compatible with the given }(hj>hhhNhNubj )}(h**fd**h]hfd}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj>ubah}(h]h ]h"]h$]h&]uh1jhjx>ubj)}(hrCalls the handler's .preserve() operation, which saves the file's state and returns an opaque private data handle.h]h)}(hrCalls the handler's .preserve() operation, which saves the file's state and returns an opaque private data handle.h]hvCalls the handler’s .preserve() operation, which saves the file’s state and returns an opaque private data handle.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj>ubah}(h]h ]h"]h$]h&]uh1jhjx>ubj)}(h7Adds the new instance to the file_set's internal list. h]h)}(h6Adds the new instance to the file_set's internal list.h]h8Adds the new instance to the file_set’s internal list.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhj?ubah}(h]h ]h"]h$]h&]uh1jhjx>ubeh}(h]h ]h"]h$]h&]j(j)j*hj+j,uh1jMhjr=ubh)}(hOn success, LUO takes a reference to the 'struct file' and considers it under its management until it is unpreserved or finished.h]hOn success, LUO takes a reference to the ‘struct file’ and considers it under its management until it is unpreserved or finished.}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubh)}(hIn case of any failure, all intermediate allocations (file reference, memory for the 'luo_file' struct, etc.) are cleaned up before returning an error.h]hIn case of any failure, all intermediate allocations (file reference, memory for the ‘luo_file’ struct, etc.) are cleaned up before returning an error.}(hj0?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chKhjr=ubh)}(h **Context**h]j )}(hjA?h]hContext}(hjC?hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj??ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjr=ubh)}(hCCan be called from an ioctl handler during normal system operation.h]hCCan be called from an ioctl handler during normal system operation.}(hjW?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjr=ubh)}(h **Return**h]j )}(hjh?h]hReturn}(hjj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjf?ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjr=ubh)}(hXi0 on success. Returns a negative errno on failure: -EEXIST if the token is already used. -EBUSY if the file descriptor is already preserved by another session. -EBADF if the file descriptor is invalid. -ENOSPC if the file_set is full. -ENOENT if no compatible handler is found. -ENOMEM on memory allocation failure. Other erros might be returned by .preserve().h]hXi0 on success. Returns a negative errno on failure: -EEXIST if the token is already used. -EBUSY if the file descriptor is already preserved by another session. -EBADF if the file descriptor is invalid. -ENOSPC if the file_set is full. -ENOENT if no compatible handler is found. -ENOMEM on memory allocation failure. Other erros might be returned by .preserve().}(hj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjr=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j &luo_file_unpreserve_files (C function)c.luo_file_unpreserve_fileshNtauh1j hj hhhNhNubj )}(hhh](j )}(h>void luo_file_unpreserve_files (struct luo_file_set *file_set)h]j )}(h=void luo_file_unpreserve_files(struct luo_file_set *file_set)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj?hhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMcubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj?hhhj?hMcubj )}(hluo_file_unpreserve_filesh]j$ )}(hluo_file_unpreserve_filesh]hluo_file_unpreserve_files}(hj?hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj?ubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj?hhhj?hMcubj!)}(h(struct luo_file_set *file_set)h]j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj?ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj?ubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hj@hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj@ubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj @modnameN classnameNjj)}j]j#)}j#j?sbc.luo_file_unpreserve_filesasbuh1hhj?ubj )}(h h]h }(hj(@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj?ubj$)}(hj $h]h*}(hj6@hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj?ubj$ )}(hfile_seth]hfile_set}(hjC@hhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj?ubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj?ubah}(h]h ]h"]h$]h&]hhuh1j!hj?hhhj?hMcubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj?hhhj?hMcubah}(h]j?ah ](jG jH eh"]h$]h&]jL jM )jN huh1j hj?hMchj?hhubjP )}(hhh]h)}(h&Unpreserves all files from a file_set.h]h&Unpreserves all files from a file_set.}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMchjj@hhubah}(h]h ]h"]h$]h&]uh1jO hj?hhhj?hMcubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq j@jr j@js jt ju uh1j hhhj hNhNubjw )}(hX(**Parameters** ``struct luo_file_set *file_set`` The files to be cleaned up. **Description** This function serves as the primary cleanup path for a file_set. It is invoked when the userspace agent closes the file_set's file descriptor. For each file, it performs the following cleanup actions: 1. Calls the handler's .unpreserve() callback to allow the handler to release any resources it allocated. 2. Removes the file from the file_set's internal tracking list. 3. Releases the reference to the 'struct file' that was taken by luo_preserve_file() via fput(), returning ownership. 4. Frees the memory associated with the internal 'struct luo_file'. After all individual files are unpreserved, it frees the contiguous memory block that was allocated to hold their serialization data.h](h)}(h**Parameters**h]j )}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMghj@ubjK)}(hhh]jP)}(h>``struct luo_file_set *file_set`` The files to be cleaned up. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hj@h]hstruct luo_file_set *file_set}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj@ubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMdhj@ubjg)}(hhh]h)}(hThe files to be cleaned up.h]hThe files to be cleaned up.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMdhj@ubah}(h]h ]h"]h$]h&]uh1jfhj@ubeh}(h]h ]h"]h$]h&]uh1jOhj@hMdhj@ubah}(h]h ]h"]h$]h&]uh1jJhj@ubh)}(h**Description**h]j )}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMfhj@ubh)}(hThis function serves as the primary cleanup path for a file_set. It is invoked when the userspace agent closes the file_set's file descriptor.h]hThis function serves as the primary cleanup path for a file_set. It is invoked when the userspace agent closes the file_set’s file descriptor.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMehj@ubjK)}(hhh]jP)}(hXFor each file, it performs the following cleanup actions: 1. Calls the handler's .unpreserve() callback to allow the handler to release any resources it allocated. 2. Removes the file from the file_set's internal tracking list. 3. Releases the reference to the 'struct file' that was taken by luo_preserve_file() via fput(), returning ownership. 4. Frees the memory associated with the internal 'struct luo_file'. h](jV)}(h9For each file, it performs the following cleanup actions:h]h9For each file, it performs the following cleanup actions:}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMnhjAubjg)}(hhh]jN)}(hhh](j)}(hfCalls the handler's .unpreserve() callback to allow the handler to release any resources it allocated.h]h)}(hfCalls the handler's .unpreserve() callback to allow the handler to release any resources it allocated.h]hhCalls the handler’s .unpreserve() callback to allow the handler to release any resources it allocated.}(hj.AhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMihj*Aubah}(h]h ]h"]h$]h&]uh1jhj'Aubj)}(hRemoves the file from the file_set’s internal tracking list.}(hjGAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMkhjCAubah}(h]h ]h"]h$]h&]uh1jhj'Aubj)}(hrReleases the reference to the 'struct file' that was taken by luo_preserve_file() via fput(), returning ownership.h]h)}(hrReleases the reference to the 'struct file' that was taken by luo_preserve_file() via fput(), returning ownership.h]hvReleases the reference to the ‘struct file’ that was taken by luo_preserve_file() via fput(), returning ownership.}(hj_AhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMlhj[Aubah}(h]h ]h"]h$]h&]uh1jhj'Aubj)}(hAFrees the memory associated with the internal 'struct luo_file'. h]h)}(h@Frees the memory associated with the internal 'struct luo_file'.h]hDFrees the memory associated with the internal ‘struct luo_file’.}(hjxAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#AhMnhjtAubah}(h]h ]h"]h$]h&]uh1jhj'Aubeh}(h]h ]h"]h$]h&]j(j)j*hj+j,uh1jMhj$Aubah}(h]h ]h"]h$]h&]uh1jfhjAubeh}(h]h ]h"]h$]h&]uh1jOhj#AhMnhjAubah}(h]h ]h"]h$]h&]uh1jJhj@ubh)}(hAfter all individual files are unpreserved, it frees the contiguous memory block that was allocated to hold their serialization data.h]hAfter all individual files are unpreserved, it frees the contiguous memory block that was allocated to hold their serialization data.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMphj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_file_freeze (C function)c.luo_file_freezehNtauh1j hj hhhNhNubj )}(hhh](j )}(hZint luo_file_freeze (struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h]j )}(hYint luo_file_freeze(struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjAhhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMubj )}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjAhhhjAhMubj )}(hluo_file_freezeh]j$ )}(hluo_file_freezeh]hluo_file_freeze}(hjAhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjAubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjAhhhjAhMubj!)}(hF(struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h](j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj Bubj )}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj Bubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hj.BhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj+Bubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetj0BmodnameN classnameNjj)}j]j#)}j#jAsbc.luo_file_freezeasbuh1hhj Bubj )}(h h]h }(hjNBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj Bubj$)}(hj $h]h*}(hj\BhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj Bubj$ )}(hfile_seth]hfile_set}(hjiBhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj Bubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjBubj$!)}(h%struct luo_file_set_ser *file_set_serh](j )}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj~Bubj )}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj~Bubh)}(hhh]j$ )}(hluo_file_set_serh]hluo_file_set_ser}(hjBhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjBubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjBmodnameN classnameNjj)}j]jJBc.luo_file_freezeasbuh1hhj~Bubj )}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj~Bubj$)}(hj $h]h*}(hjBhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj~Bubj$ )}(h file_set_serh]h file_set_ser}(hjBhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj~Bubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjBubeh}(h]h ]h"]h$]h&]hhuh1j!hjAhhhjAhMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjAhhhjAhMubah}(h]jAah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjAhMhjAhhubjP )}(hhh]h)}(h:Freezes all preserved files and serializes their metadata.h]h:Freezes all preserved files and serializes their metadata.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjChhubah}(h]h ]h"]h$]h&]uh1jO hjAhhhjAhMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jCjr jCjs jt ju uh1j hhhj hNhNubjw )}(hXS**Parameters** ``struct luo_file_set *file_set`` The file_set whose files are to be frozen. ``struct luo_file_set_ser *file_set_ser`` Where to put the serialized file_set. **Description** This function is called from the reboot() syscall path, just before the kernel transitions to the new image via kexec. Its purpose is to perform the final preparation and serialization of all preserved files in the file_set. It iterates through each preserved file in FIFO order (the order of preservation) and performs two main actions: 1. Freezes the File: It calls the handler's .freeze() callback for each file. This gives the handler a final opportunity to quiesce the device or prepare its state for the upcoming reboot. The handler may update its private data handle during this step. 2. Serializes Metadata: After a successful freeze, it copies the final file metadata—the handler's compatible string, the user token, and the final private data handle—into the pre-allocated contiguous memory buffer (file_set->files) that will be handed over to the next kernel via KHO. Error Handling (Rollback): This function is atomic. If any handler's .freeze() operation fails, the entire live update is aborted. The __luo_file_unfreeze() helper is immediately called to invoke the .unfreeze() op on all files that were successfully frozen before the point of failure, rolling them back to a running state. The function then returns an error, causing the reboot() syscall to fail. **Context** Called only from the liveupdate_reboot() path. **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j )}(hj%Ch]h Parameters}(hj'ChhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#Cubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubjK)}(hhh](jP)}(hM``struct luo_file_set *file_set`` The file_set whose files are to be frozen. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hjDCh]hstruct luo_file_set *file_set}(hjFChhhNhNubah}(h]h ]h"]h$]h&]uh1jphjBCubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhj>Cubjg)}(hhh]h)}(h*The file_set whose files are to be frozen.h]h*The file_set whose files are to be frozen.}(hj]ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYChMhjZCubah}(h]h ]h"]h$]h&]uh1jfhj>Cubeh}(h]h ]h"]h$]h&]uh1jOhjYChMhj;CubjP)}(hP``struct luo_file_set_ser *file_set_ser`` Where to put the serialized file_set. h](jV)}(h)``struct luo_file_set_ser *file_set_ser``h]jq)}(hj}Ch]h%struct luo_file_set_ser *file_set_ser}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jphj{Cubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjwCubjg)}(hhh]h)}(h%Where to put the serialized file_set.h]h%Where to put the serialized file_set.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1jfhjwCubeh}(h]h ]h"]h$]h&]uh1jOhjChMhj;Cubeh}(h]h ]h"]h$]h&]uh1jJhjCubh)}(h**Description**h]j )}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(hThis function is called from the reboot() syscall path, just before the kernel transitions to the new image via kexec. Its purpose is to perform the final preparation and serialization of all preserved files in the file_set.h]hThis function is called from the reboot() syscall path, just before the kernel transitions to the new image via kexec. Its purpose is to perform the final preparation and serialization of all preserved files in the file_set.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(hpIt iterates through each preserved file in FIFO order (the order of preservation) and performs two main actions:h]hpIt iterates through each preserved file in FIFO order (the order of preservation) and performs two main actions:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubjN)}(hhh](j)}(hFreezes the File: It calls the handler's .freeze() callback for each file. This gives the handler a final opportunity to quiesce the device or prepare its state for the upcoming reboot. The handler may update its private data handle during this step. h]h)}(hFreezes the File: It calls the handler's .freeze() callback for each file. This gives the handler a final opportunity to quiesce the device or prepare its state for the upcoming reboot. The handler may update its private data handle during this step.h]hFreezes the File: It calls the handler’s .freeze() callback for each file. This gives the handler a final opportunity to quiesce the device or prepare its state for the upcoming reboot. The handler may update its private data handle during this step.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hX Serializes Metadata: After a successful freeze, it copies the final file metadata—the handler's compatible string, the user token, and the final private data handle—into the pre-allocated contiguous memory buffer (file_set->files) that will be handed over to the next kernel via KHO. h]h)}(hXSerializes Metadata: After a successful freeze, it copies the final file metadata—the handler's compatible string, the user token, and the final private data handle—into the pre-allocated contiguous memory buffer (file_set->files) that will be handed over to the next kernel via KHO.h]hX!Serializes Metadata: After a successful freeze, it copies the final file metadata—the handler’s compatible string, the user token, and the final private data handle—into the pre-allocated contiguous memory buffer (file_set->files) that will be handed over to the next kernel via KHO.}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]j(j)j*hj+j,uh1jMhjCubh)}(hXError Handling (Rollback): This function is atomic. If any handler's .freeze() operation fails, the entire live update is aborted. The __luo_file_unfreeze() helper is immediately called to invoke the .unfreeze() op on all files that were successfully frozen before the point of failure, rolling them back to a running state. The function then returns an error, causing the reboot() syscall to fail.h]hXError Handling (Rollback): This function is atomic. If any handler’s .freeze() operation fails, the entire live update is aborted. The __luo_file_unfreeze() helper is immediately called to invoke the .unfreeze() op on all files that were successfully frozen before the point of failure, rolling them back to a running state. The function then returns an error, causing the reboot() syscall to fail.}(hj'DhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(h **Context**h]j )}(hj8Dh]hContext}(hj:DhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj6Dubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(h.Called only from the liveupdate_reboot() path.h]h.Called only from the liveupdate_reboot() path.}(hjNDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(h **Return**h]j )}(hj_Dh]hReturn}(hjaDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj]Dubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hjuDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_file_unfreeze (C function)c.luo_file_unfreezehNtauh1j hj hhhNhNubj )}(hhh](j )}(h]void luo_file_unfreeze (struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h]j )}(h\void luo_file_unfreeze(struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjDhhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMubj )}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjDhhhjDhMubj )}(hluo_file_unfreezeh]j$ )}(hluo_file_unfreezeh]hluo_file_unfreeze}(hjDhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjDubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjDhhhjDhMubj!)}(hF(struct luo_file_set *file_set, struct luo_file_set_ser *file_set_ser)h](j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjDubj )}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjDubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hjDhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjDubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjEmodnameN classnameNjj)}j]j#)}j#jDsbc.luo_file_unfreezeasbuh1hhjDubj )}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjDubj$)}(hj $h]h*}(hj-EhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjDubj$ )}(hfile_seth]hfile_set}(hj:EhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjDubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjDubj$!)}(h%struct luo_file_set_ser *file_set_serh](j )}(hj h]hstruct}(hjSEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjOEubj )}(h h]h }(hj`EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjOEubh)}(hhh]j$ )}(hluo_file_set_serh]hluo_file_set_ser}(hjqEhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjnEubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjsEmodnameN classnameNjj)}j]jEc.luo_file_unfreezeasbuh1hhjOEubj )}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjOEubj$)}(hj $h]h*}(hjEhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjOEubj$ )}(h file_set_serh]h file_set_ser}(hjEhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjOEubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjDubeh}(h]h ]h"]h$]h&]hhuh1j!hjDhhhjDhMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjDhhhjDhMubah}(h]jDah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjDhMhjDhhubjP )}(hhh]h)}(h9Unfreezes all files in a file_set and clear serializationh]h9Unfreezes all files in a file_set and clear serialization}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jO hjDhhhjDhMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jEjr jEjs jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct luo_file_set *file_set`` The file_set whose files are to be unfrozen. ``struct luo_file_set_ser *file_set_ser`` Serialized file_set. **Description** This function rolls back the state of all files in a file_set after the freeze phase has begun but must be aborted. It is the counterpart to luo_file_freeze(). It invokes the __luo_file_unfreeze() helper with a NULL argument, which signals the helper to iterate through all files in the file_set and call their respective .unfreeze() handler callbacks. **Context** This is called when the live update is aborted during the reboot() syscall, after luo_file_freeze() has been called.h](h)}(h**Parameters**h]j )}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjEubjK)}(hhh](jP)}(hO``struct luo_file_set *file_set`` The file_set whose files are to be unfrozen. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hjFh]hstruct luo_file_set *file_set}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjFubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjFubjg)}(hhh]h)}(h,The file_set whose files are to be unfrozen.h]h,The file_set whose files are to be unfrozen.}(hj.FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*FhMhj+Fubah}(h]h ]h"]h$]h&]uh1jfhjFubeh}(h]h ]h"]h$]h&]uh1jOhj*FhMhj FubjP)}(h?``struct luo_file_set_ser *file_set_ser`` Serialized file_set. h](jV)}(h)``struct luo_file_set_ser *file_set_ser``h]jq)}(hjNFh]h%struct luo_file_set_ser *file_set_ser}(hjPFhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjLFubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjHFubjg)}(hhh]h)}(hSerialized file_set.h]hSerialized file_set.}(hjgFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcFhMhjdFubah}(h]h ]h"]h$]h&]uh1jfhjHFubeh}(h]h ]h"]h$]h&]uh1jOhjcFhMhj Fubeh}(h]h ]h"]h$]h&]uh1jJhjEubh)}(h**Description**h]j )}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjEubh)}(hThis function rolls back the state of all files in a file_set after the freeze phase has begun but must be aborted. It is the counterpart to luo_file_freeze().h]hThis function rolls back the state of all files in a file_set after the freeze phase has begun but must be aborted. It is the counterpart to luo_file_freeze().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjEubh)}(hIt invokes the __luo_file_unfreeze() helper with a NULL argument, which signals the helper to iterate through all files in the file_set and call their respective .unfreeze() handler callbacks.h]hIt invokes the __luo_file_unfreeze() helper with a NULL argument, which signals the helper to iterate through all files in the file_set and call their respective .unfreeze() handler callbacks.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjEubh)}(h **Context**h]j )}(hjFh]hContext}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM#hjEubh)}(htThis is called when the live update is aborted during the reboot() syscall, after luo_file_freeze() has been called.h]htThis is called when the live update is aborted during the reboot() syscall, after luo_file_freeze() has been called.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM$hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_retrieve_file (C function)c.luo_retrieve_filehNtauh1j hj hhhNhNubj )}(hhh](j )}(hUint luo_retrieve_file (struct luo_file_set *file_set, u64 token, struct file **filep)h]j )}(hTint luo_retrieve_file(struct luo_file_set *file_set, u64 token, struct file **filep)h](j )}(hinth]hint}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGhhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM2ubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGhhhjGhM2ubj )}(hluo_retrieve_fileh]j$ )}(hluo_retrieve_fileh]hluo_retrieve_file}(hj%GhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj!Gubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjGhhhjGhM2ubj!)}(h?(struct luo_file_set *file_set, u64 token, struct file **filep)h](j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hjAGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj=Gubj )}(h h]h }(hjNGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj=Gubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hj_GhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj\Gubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjaGmodnameN classnameNjj)}j]j#)}j#j'Gsbc.luo_retrieve_fileasbuh1hhj=Gubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj=Gubj$)}(hj $h]h*}(hjGhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj=Gubj$ )}(hfile_seth]hfile_set}(hjGhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hj=Gubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj9Gubj$!)}(h u64 tokenh](h)}(hhh]j$ )}(hu64h]hu64}(hjGhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjGubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjGmodnameN classnameNjj)}j]j{Gc.luo_retrieve_fileasbuh1hhjGubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGubj$ )}(htokenh]htoken}(hjGhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjGubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj9Gubj$!)}(hstruct file **fileph](j )}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGubj )}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGubh)}(hhh]j$ )}(hfileh]hfile}(hjHhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjHubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjHmodnameN classnameNjj)}j]j{Gc.luo_retrieve_fileasbuh1hhjGubj )}(h h]h }(hj7HhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjGubj$)}(hj $h]h*}(hjEHhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjGubj$)}(hj $h]h*}(hjRHhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjGubj$ )}(hfileph]hfilep}(hj_HhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjGubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hj9Gubeh}(h]h ]h"]h$]h&]hhuh1j!hjGhhhjGhM2ubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjFhhhjGhM2ubah}(h]jFah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjGhM2hjFhhubjP )}(hhh]h)}(h7Restores a preserved file from a file_set by its token.h]h7Restores a preserved file from a file_set by its token.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM2hjHhhubah}(h]h ]h"]h$]h&]uh1jO hjFhhhjGhM2ubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jHjr jHjs jt ju uh1j hhhj hNhNubjw )}(hXw**Parameters** ``struct luo_file_set *file_set`` The file_set from which to retrieve the file. ``u64 token`` The unique token identifying the file to be restored. ``struct file **filep`` Output parameter; on success, this is populated with a pointer to the newly retrieved 'struct file'. **Description** This function is the primary mechanism for recreating a file in the new kernel after a live update. It searches the file_set's list of deserialized files for an entry matching the provided **token**. The operation is idempotent: if a file has already been successfully retrieved, this function will simply return a pointer to the existing 'struct file' and report success without re-executing the retrieve operation. This is handled by checking the 'retrieved' flag under a lock. File retrieval can happen in any order; it is not bound by the order of preservation. **Context** Can be called from an ioctl or other in-kernel code in the new kernel. **Return** 0 on success. Returns a negative errno on failure: -ENOENT if no file with the matching token is found. Any error code returned by the handler's .retrieve() op.h](h)}(h**Parameters**h]j )}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjHubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM6hjHubjK)}(hhh](jP)}(hP``struct luo_file_set *file_set`` The file_set from which to retrieve the file. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hjHh]hstruct luo_file_set *file_set}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjHubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM3hjHubjg)}(hhh]h)}(h-The file_set from which to retrieve the file.h]h-The file_set from which to retrieve the file.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM3hjHubah}(h]h ]h"]h$]h&]uh1jfhjHubeh}(h]h ]h"]h$]h&]uh1jOhjHhM3hjHubjP)}(hD``u64 token`` The unique token identifying the file to be restored. h](jV)}(h ``u64 token``h]jq)}(hjIh]h u64 token}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjIubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM4hjHubjg)}(hhh]h)}(h5The unique token identifying the file to be restored.h]h5The unique token identifying the file to be restored.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM4hjIubah}(h]h ]h"]h$]h&]uh1jfhjHubeh}(h]h ]h"]h$]h&]uh1jOhjIhM4hjHubjP)}(h}``struct file **filep`` Output parameter; on success, this is populated with a pointer to the newly retrieved 'struct file'. h](jV)}(h``struct file **filep``h]jq)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj:Iubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM6hj6Iubjg)}(hhh]h)}(hdOutput parameter; on success, this is populated with a pointer to the newly retrieved 'struct file'.h]hhOutput parameter; on success, this is populated with a pointer to the newly retrieved ‘struct file’.}(hjUIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM5hjRIubah}(h]h ]h"]h$]h&]uh1jfhj6Iubeh}(h]h ]h"]h$]h&]uh1jOhjQIhM6hjHubeh}(h]h ]h"]h$]h&]uh1jJhjHubh)}(h**Description**h]j )}(hjxIh]h Description}(hjzIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvIubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM8hjHubh)}(hThis function is the primary mechanism for recreating a file in the new kernel after a live update. It searches the file_set's list of deserialized files for an entry matching the provided **token**.h](hThis function is the primary mechanism for recreating a file in the new kernel after a live update. It searches the file_set’s list of deserialized files for an entry matching the provided }(hjIhhhNhNubj )}(h **token**h]htoken}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM7hjHubh)}(hXThe operation is idempotent: if a file has already been successfully retrieved, this function will simply return a pointer to the existing 'struct file' and report success without re-executing the retrieve operation. This is handled by checking the 'retrieved' flag under a lock.h]hXThe operation is idempotent: if a file has already been successfully retrieved, this function will simply return a pointer to the existing ‘struct file’ and report success without re-executing the retrieve operation. This is handled by checking the ‘retrieved’ flag under a lock.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM;hjHubh)}(hUFile retrieval can happen in any order; it is not bound by the order of preservation.h]hUFile retrieval can happen in any order; it is not bound by the order of preservation.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM@hjHubh)}(h **Context**h]j )}(hjIh]hContext}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMChjHubh)}(hFCan be called from an ioctl or other in-kernel code in the new kernel.h]hFCan be called from an ioctl or other in-kernel code in the new kernel.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMDhjHubh)}(h **Return**h]j )}(hjIh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMGhjHubh)}(h0 on success. Returns a negative errno on failure: -ENOENT if no file with the matching token is found. Any error code returned by the handler's .retrieve() op.h]h0 on success. Returns a negative errno on failure: -ENOENT if no file with the matching token is found. Any error code returned by the handler’s .retrieve() op.}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMFhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j luo_file_finish (C function)c.luo_file_finishhNtauh1j hj hhhNhNubj )}(hhh](j )}(h3int luo_file_finish (struct luo_file_set *file_set)h]j )}(h2int luo_file_finish(struct luo_file_set *file_set)h](j )}(hinth]hint}(hj;JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7Jhhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMubj )}(h h]h }(hjJJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7JhhhjIJhMubj )}(hluo_file_finishh]j$ )}(hluo_file_finishh]hluo_file_finish}(hj\JhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjXJubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hj7JhhhjIJhMubj!)}(h(struct luo_file_set *file_set)h]j$!)}(hstruct luo_file_set *file_seth](j )}(hj h]hstruct}(hjxJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjtJubj )}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjtJubh)}(hhh]j$ )}(h luo_file_seth]h luo_file_set}(hjJhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjJubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjJmodnameN classnameNjj)}j]j#)}j#j^Jsbc.luo_file_finishasbuh1hhjtJubj )}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjtJubj$)}(hj $h]h*}(hjJhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjtJubj$ )}(hfile_seth]hfile_set}(hjJhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjtJubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjpJubah}(h]h ]h"]h$]h&]hhuh1j!hj7JhhhjIJhMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hj3JhhhjIJhMubah}(h]j.Jah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjIJhMhj0JhhubjP )}(hhh]h)}(h4Completes the lifecycle for all files in a file_set.h]h4Completes the lifecycle for all files in a file_set.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jO hj0JhhhjIJhMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jKjr jKjs jt ju uh1j hhhj hNhNubjw )}(hX**Parameters** ``struct luo_file_set *file_set`` The file_set to be finalized. **Description** This function orchestrates the final teardown of a live update file_set in the new kernel. It should be called after all necessary files have been retrieved and the userspace agent is ready to release the preserved state. The function iterates through all tracked files. For each file, it performs the following sequence of cleanup actions: 1. If file is not yet retrieved, retrieves it, and calls can_finish() on every file in the file_set. If all can_finish return true, continue to finish. 2. Calls the handler's .finish() callback (via luo_file_finish_one) to allow for final resource cleanup within the handler. 3. Releases LUO's ownership reference on the 'struct file' via fput(). This is the counterpart to the get_file() call in luo_retrieve_file(). 4. Removes the 'struct luo_file' from the file_set's internal list. 5. Frees the memory for the 'struct luo_file' instance itself. After successfully finishing all individual files, it frees the contiguous memory block that was used to transfer the serialized metadata from the previous kernel. Error Handling (Atomic Failure): This operation is atomic. If any handler's .can_finish() op fails, the entire function aborts immediately and returns an error. **Context** Can be called from an ioctl handler in the new kernel. **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j )}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjKubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubjK)}(hhh]jP)}(h@``struct luo_file_set *file_set`` The file_set to be finalized. h](jV)}(h!``struct luo_file_set *file_set``h]jq)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj:Kubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhj6Kubjg)}(hhh]h)}(hThe file_set to be finalized.h]hThe file_set to be finalized.}(hjUKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQKhMhjRKubah}(h]h ]h"]h$]h&]uh1jfhj6Kubeh}(h]h ]h"]h$]h&]uh1jOhjQKhMhj3Kubah}(h]h ]h"]h$]h&]uh1jJhjKubh)}(h**Description**h]j )}(hjwKh]h Description}(hjyKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuKubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubh)}(hThis function orchestrates the final teardown of a live update file_set in the new kernel. It should be called after all necessary files have been retrieved and the userspace agent is ready to release the preserved state.h]hThis function orchestrates the final teardown of a live update file_set in the new kernel. It should be called after all necessary files have been retrieved and the userspace agent is ready to release the preserved state.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubh)}(hvThe function iterates through all tracked files. For each file, it performs the following sequence of cleanup actions:h]hvThe function iterates through all tracked files. For each file, it performs the following sequence of cleanup actions:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubjN)}(hhh](j)}(hIf file is not yet retrieved, retrieves it, and calls can_finish() on every file in the file_set. If all can_finish return true, continue to finish.h]h)}(hIf file is not yet retrieved, retrieves it, and calls can_finish() on every file in the file_set. If all can_finish return true, continue to finish.h]hIf file is not yet retrieved, retrieves it, and calls can_finish() on every file in the file_set. If all can_finish return true, continue to finish.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(hxCalls the handler's .finish() callback (via luo_file_finish_one) to allow for final resource cleanup within the handler.h]h)}(hxCalls the handler's .finish() callback (via luo_file_finish_one) to allow for final resource cleanup within the handler.h]hzCalls the handler’s .finish() callback (via luo_file_finish_one) to allow for final resource cleanup within the handler.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(hReleases LUO's ownership reference on the 'struct file' via fput(). This is the counterpart to the get_file() call in luo_retrieve_file().h]h)}(hReleases LUO's ownership reference on the 'struct file' via fput(). This is the counterpart to the get_file() call in luo_retrieve_file().h]hReleases LUO’s ownership reference on the ‘struct file’ via fput(). This is the counterpart to the get_file() call in luo_retrieve_file().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(h@Removes the 'struct luo_file' from the file_set's internal list.h]h)}(hjKh]hFRemoves the ‘struct luo_file’ from the file_set’s internal list.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(h`. The caller must initialize this structure, including a unique 'compatible' string and a valid 'fh' callbacks. This function adds the handler to the global list of supported file handlers. **Context** Typically called during module initialization for file types that support live update preservation. **Return** 0 on success. Negative errno on failure.h](h)}(h**Parameters**h]j )}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjPubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMahjPubjK)}(hhh]jP)}(hXE``struct liveupdate_file_handler *fh`` Pointer to a caller-allocated :c:type:`struct liveupdate_file_handler `. The caller must initialize this structure, including a unique 'compatible' string and a valid 'fh' callbacks. This function adds the handler to the global list of supported file handlers. h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hjPh]h"struct liveupdate_file_handler *fh}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjPubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMahjPubjg)}(hhh]h)}(hXPointer to a caller-allocated :c:type:`struct liveupdate_file_handler `. The caller must initialize this structure, including a unique 'compatible' string and a valid 'fh' callbacks. This function adds the handler to the global list of supported file handlers.h](hPointer to a caller-allocated }(hjPhhhNhNubh)}(hB:c:type:`struct liveupdate_file_handler `h]jq)}(hjPh]hstruct liveupdate_file_handler}(hjPhhhNhNubah}(h]h ](j|j}c-typeeh"]h$]h&]uh1jphjPubah}(h]h ]h"]h$]h&]refdocj refdomainj}reftypetype refexplicitrefwarnjjjliveupdate_file_handleruh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chM^hjPubh. The caller must initialize this structure, including a unique ‘compatible’ string and a valid ‘fh’ callbacks. This function adds the handler to the global list of supported file handlers.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj QhM^hjPubah}(h]h ]h"]h$]h&]uh1jfhjPubeh}(h]h ]h"]h$]h&]uh1jOhjPhMahjPubah}(h]h ]h"]h$]h&]uh1jJhjPubh)}(h **Context**h]j )}(hj*Qh]hContext}(hj,QhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(Qubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMchjPubh)}(hcTypically called during module initialization for file types that support live update preservation.h]hcTypically called during module initialization for file types that support live update preservation.}(hj@QhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMchjPubh)}(h **Return**h]j )}(hjQQh]hReturn}(hjSQhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOQubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMfhjPubh)}(h(0 on success. Negative errno on failure.h]h(0 on success. Negative errno on failure.}(hjgQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMfhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j /liveupdate_unregister_file_handler (C function)$c.liveupdate_unregister_file_handlerhNtauh1j hj hhhNhNubj )}(hhh](j )}(hLvoid liveupdate_unregister_file_handler (struct liveupdate_file_handler *fh)h]j )}(hKvoid liveupdate_unregister_file_handler(struct liveupdate_file_handler *fh)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjQhhh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMubj )}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjQhhhjQhMubj )}(h"liveupdate_unregister_file_handlerh]j$ )}(h"liveupdate_unregister_file_handlerh]h"liveupdate_unregister_file_handler}(hjQhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjQubah}(h]h ](j6 j7 eh"]h$]h&]hhuh1j hjQhhhjQhMubj!)}(h$(struct liveupdate_file_handler *fh)h]j$!)}(h"struct liveupdate_file_handler *fhh](j )}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjQubj )}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjQubh)}(hhh]j$ )}(hliveupdate_file_handlerh]hliveupdate_file_handler}(hjQhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjQubah}(h]h ]h"]h$]h&] refdomainj}reftypej# reftargetjQmodnameN classnameNjj)}j]j#)}j#jQsb$c.liveupdate_unregister_file_handlerasbuh1hhjQubj )}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjQubj$)}(hj $h]h*}(hjRhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjQubj$ )}(hfhh]hfh}(hj,RhhhNhNubah}(h]h ]j/ ah"]h$]h&]uh1j# hjQubeh}(h]h ]h"]h$]h&]noemphhhuh1j#!hjQubah}(h]h ]h"]h$]h&]hhuh1j!hjQhhhjQhMubeh}(h]h ]h"]h$]h&]hhjA uh1j jB jC hjQhhhjQhMubah}(h]jQah ](jG jH eh"]h$]h&]jL jM )jN huh1j hjQhMhjQhhubjP )}(hhh]h)}(h$Unregister a liveupdate file handlerh]h$Unregister a liveupdate file handler}(hjVRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjSRhhubah}(h]h ]h"]h$]h&]uh1jO hjQhhhjQhMubeh}(h]h ](j}functioneh"]h$]h&]jp j}jq jnRjr jnRjs jt ju uh1j hhhj hNhNubjw )}(h**Parameters** ``struct liveupdate_file_handler *fh`` The file handler to unregister **Description** Unregisters the file handler from the liveupdate core. This function reverses the operations of liveupdate_register_file_handler().h](h)}(h**Parameters**h]j )}(hjxRh]h Parameters}(hjzRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvRubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjrRubjK)}(hhh]jP)}(hF``struct liveupdate_file_handler *fh`` The file handler to unregister h](jV)}(h&``struct liveupdate_file_handler *fh``h]jq)}(hjRh]h"struct liveupdate_file_handler *fh}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjRubah}(h]h ]h"]h$]h&]uh1jUh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjRubjg)}(hhh]h)}(hThe file handler to unregisterh]hThe file handler to unregister}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jfhjRubeh}(h]h ]h"]h$]h&]uh1jOhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jJhjrRubh)}(h**Description**h]j )}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjRubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjrRubh)}(hUnregisters the file handler from the liveupdate core. This function reverses the operations of liveupdate_register_file_handler().h]hUnregisters the file handler from the liveupdate core. This function reverses the operations of liveupdate_register_file_handler().}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/liveupdate:65: ./kernel/liveupdate/luo_file.chMhjrRubeh}(h]h ] kernelindentah"]h$]h&]uh1jv hj hhhNhNubeh}(h] internal-apiah ]h"] internal apiah$]h&]uh1hhhhhhhhK7ubh)}(hhh](h)}(hSee Alsoh]hSee Also}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShhhhhKEubj)}(hhh](j)}(h3:doc:`Live Update uAPI `h]h)}(hjSh]h)}(hjSh]hinline)}(hjSh]hLive Update uAPI}(hj&ShhhNhNubah}(h]h ](j|stdstd-doceh"]h$]h&]uh1j$Shj!Subah}(h]h ]h"]h$]h&]refdocj refdomainj0Sreftypedoc refexplicitrefwarnj/userspace-api/liveupdateuh1hhhhKGhjSubah}(h]h ]h"]h$]h&]uh1hhhhKGhjSubah}(h]h ]h"]h$]h&]uh1jhjShhhhhNubj)}(h:doc:`/core-api/kho/index`h]h)}(hjPSh]h)}(hjPSh]j%S)}(hjPSh]h/core-api/kho/index}(hjXShhhNhNubah}(h]h ](j|stdstd-doceh"]h$]h&]uh1j$ShjUSubah}(h]h ]h"]h$]h&]refdocj refdomainjbSreftypedoc refexplicitrefwarnj/core-api/kho/indexuh1hhhhKHhjRSubah}(h]h ]h"]h$]h&]uh1hhhhKHhjNSubah}(h]h ]h"]h$]h&]uh1jhjShhhhhNubeh}(h]h ]h"]h$]h&]j<j=uh1jhhhKGhjShhubeh}(h]see-alsoah ]h"]see alsoah$]h&]uh1hhhhhhhhKEubeh}(h]live-update-orchestratorah ]h"]live update orchestratorah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjSerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jSjSj2j/jjjjj j j j jSjSjSjSu nametypes}(jSj2jjj j jSjSuh}(jShj/jjj5jjj jj j j j j& j+ jkjpjjjjjjjFjLjjj,j1jjjjjjjSj j j j"j"jm#jr#jR%jW%j&j&j(j(j#*j(*j,j,j@/jE/j1j1j3j3j5j!5jy7j~7j8j8j <j<j?j?jAjAjDjDjFjFj.Jj3JjLjLjOjOjQjQjSjSu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.