2
0
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:
Pavel Emelyanov
2013-09-10 12:13:36 +04:00
parent dee617dc85
commit b4c09afd43
2 changed files with 43 additions and 2 deletions

View File

@@ -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 */