mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
files: Add more comments about shared files dump/restore
This is not trivial codeflow, let's document it till we remember what and why it does. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -90,7 +90,7 @@ struct file_desc_ops {
|
||||
int (*post_open)(struct file_desc *d, int fd);
|
||||
/*
|
||||
* Report whether the fd in question wants a transport socket
|
||||
* in it instead of a real file.
|
||||
* in it instead of a real file. See file_master for details.
|
||||
*/
|
||||
int (*want_transport)(FdinfoEntry *fe, struct file_desc *d);
|
||||
/*
|
||||
@@ -101,7 +101,7 @@ struct file_desc_ops {
|
||||
};
|
||||
|
||||
struct file_desc {
|
||||
u32 id; /* File descriptor id, unique */
|
||||
u32 id; /* File id, unique */
|
||||
struct hlist_node hash; /* Descriptor hashing and lookup */
|
||||
struct list_head fd_info_head; /* Chain of fdinfo_list_entry-s with same ID and type but different pids */
|
||||
struct file_desc_ops *ops; /* Associated operations */
|
||||
|
Reference in New Issue
Block a user