Skip to content

Commit e10d59f

Browse files
Christoph Lametertorvalds
authored andcommitted
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>
1 parent bc3e53f commit e10d59f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎include/linux/mm_types.h‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,15 @@ struct mm_struct {
304304
unsigned long hiwater_rss; /* High-watermark of RSS usage */
305305
unsigned long hiwater_vm; /* High-water virtual memory usage */
306306

307-
unsigned long total_vm, locked_vm, pinned_vm, shared_vm, exec_vm;
308-
unsigned long stack_vm, reserved_vm, def_flags, nr_ptes;
307+
unsigned long total_vm; /* Total pages mapped */
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 */
309316
unsigned long start_code, end_code, start_data, end_data;
310317
unsigned long start_brk, brk, start_stack;
311318
unsigned long arg_start, arg_end, env_start, env_end;

0 commit comments

Comments
 (0)