aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2011-10-31 20:07:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:46 -0400
commite10d59f2c3decaf22cc5d3de7040eba202bc2df3 (patch)
tree68a25b573ddd1701d6a50f22b26287eca8e5c1ea /include/linux/mm_types.h
parentbc3e53f682d93df677dbd5006a404722b3adfe18 (diff)
mm: add comments to explain mm_struct fields
Add comments to explain the page statistics field in the mm_struct. [akpm@linux-foundation.org: add missing ;] Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm_types.h')
-rw-r--r--include/linux/mm_types.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index f3175830cc7..3e01a19a91e 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -304,8 +304,15 @@ struct mm_struct {
304 unsigned long hiwater_rss; /* High-watermark of RSS usage */ 304 unsigned long hiwater_rss; /* High-watermark of RSS usage */
305 unsigned long hiwater_vm; /* High-water virtual memory usage */ 305 unsigned long hiwater_vm; /* High-water virtual memory usage */
306 306
307 unsigned long total_vm, locked_vm, pinned_vm, shared_vm, exec_vm; 307 unsigned long total_vm; /* Total pages mapped */
308 unsigned long stack_vm, reserved_vm, def_flags, nr_ptes; 308 unsigned long locked_vm; /* Pages that have PG_mlocked set */
309 unsigned long pinned_vm; /* Refcount permanently increased */
310 unsigned long shared_vm; /* Shared pages (files) */
311 unsigned long exec_vm; /* VM_EXEC & ~VM_WRITE */
312 unsigned long stack_vm; /* VM_GROWSUP/DOWN */
313 unsigned long reserved_vm; /* VM_RESERVED|VM_IO pages */
314 unsigned long def_flags;
315 unsigned long nr_ptes; /* Page table pages */
309 unsigned long start_code, end_code, start_data, end_data; 316 unsigned long start_code, end_code, start_data, end_data;
310 unsigned long start_brk, brk, start_stack; 317 unsigned long start_brk, brk, start_stack;
311 unsigned long arg_start, arg_end, env_start, env_end; 318 unsigned long arg_start, arg_end, env_start, env_end;