STRUCT LIVEUPDATE_FILE_OP_ARGS(9)
π 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 of0means 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 π«Ά
- for retrieve:
serialized_dataβ the opaqueu64handle. 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.preservecallback, and β important β it must be freed in the handler's.unpreservecallback. 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms