Commit f84d19e0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

vma: Add comments about some dump fields of vma_area

We have non-obvious handling of vm_file_fd/vm_socket_id
pair and the vma->file_borrowed.

Comment these to in the structure.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent cf8c9ae8
...@@ -30,6 +30,12 @@ struct vma_area { ...@@ -30,6 +30,12 @@ struct vma_area {
union { union {
struct /* for dump */ { struct /* for dump */ {
union { union {
/*
* These two cannot be assigned at once.
* The file_fd is an fd for a regular file and
* the socket_id is the inode number of the
* mapped (PF_PACKET) socket.
*/
int vm_file_fd; int vm_file_fd;
int vm_socket_id; int vm_socket_id;
}; };
...@@ -37,6 +43,11 @@ struct vma_area { ...@@ -37,6 +43,11 @@ struct vma_area {
char *aufs_rpath; /* path from aufs root */ char *aufs_rpath; /* path from aufs root */
char *aufs_fpath; /* full path from global root */ char *aufs_fpath; /* full path from global root */
/*
* When several subsequent vmas have the same
* dev:ino pair all 'tail' ones set this to true
* and the vmst points to the head's stat buf.
*/
bool file_borrowed; bool file_borrowed;
struct stat *vmst; struct stat *vmst;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment