STRUCT LIVEUPDATE_FILE_OP_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct liveupdate_file_op_args β€” bestie, this is the args bundle for the file operation callbacks. it's giving "one struct to hold them all" ✨


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the whole thing, no cap, exactly as it is:

struct liveupdate_file_op_args {
    struct liveupdate_file_handler *handler;
    int retrieve_status;
    struct file *file;
    u64 serialized_data;
    void *private_data;
 };

🌸 Members 🌸

  • handler β€” the file handler that's getting called rn. like, the one on the aux cord 🎧
  • retrieve_status β€” the retrieve status for the 'can_finish / finish' operation. so listen: a value of 0 means the retrieve has not been attempted yet, a positive value means the retrieve was successful (slay), and a negative value means the retrieve failed β€” and in that case the value is literally the error code of the call 😭
  • file β€” the file object. and this one's doing double duty, so pay attention:
    • 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 🫢
  • serialized_data β€” the opaque u64 handle. preserve/prepare/freeze are allowed to update this field πŸ‘‘
  • private_data β€” private data for the file, used to hold runtime state that is not preserved. it gets set by the handler's .preserve callback, and β€” important β€” it must be freed in the handler's .unpreserve callback. don't leave it hanging bestie πŸ’€

πŸ¦‹ Description πŸ¦‹

this structure bundles all the parameters for the file operation callbacks β€” one cute little package, everything inside 🎁

the 'data' and 'file' fields are used for both input and output. yes, both. main character fields fr fr ✨


⭐ SEE ALSO ⭐

  • Kernel file ./include/linux/liveupdate.h
  • struct liveupdate_file_ops(9)
  • struct liveupdate_file_handler(9)
  • struct liveupdate_flb_op_args(9)
  • struct liveupdate_flb_ops(9)
  • struct liveupdate_flb(9)

k that's the whole page, go read the other ones too, iykyk πŸ“šπŸ’œ

source: ./include/linux β€” dated October 2026 β€” mwah, that's a wrap, love u mean it πŸŽ€πŸ’–

πŸ“¦ where this page comes from