mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
files: Add a few comments on structures we use for files handling
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
c9f7112595
commit
1fd9913ffb
@@ -44,9 +44,9 @@ enum fdinfo_states {
|
||||
struct file_desc;
|
||||
|
||||
struct fdinfo_list_entry {
|
||||
struct list_head desc_list;
|
||||
struct file_desc *desc;
|
||||
struct list_head ps_list;
|
||||
struct list_head desc_list; /* To chain on @fd_info_head */
|
||||
struct file_desc *desc; /* Associated file descriptor */
|
||||
struct list_head ps_list; /* To chain per-task files */
|
||||
int pid;
|
||||
futex_t real_pid;
|
||||
FdinfoEntry *fe;
|
||||
@@ -60,10 +60,10 @@ struct file_desc_ops {
|
||||
};
|
||||
|
||||
struct file_desc {
|
||||
u32 id;
|
||||
struct list_head hash;
|
||||
struct list_head fd_info_head;
|
||||
struct file_desc_ops *ops;
|
||||
u32 id; /* File descriptor id, unique */
|
||||
struct list_head 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 */
|
||||
};
|
||||
|
||||
struct fdtype_ops {
|
||||
|
Reference in New Issue
Block a user