Skip to Content
Mastering Linux Kernel Development
book

Mastering Linux Kernel Development

by CH Raghav Maruthi
October 2017
Intermediate to advanced
354 pages
9h 28m
English
Packt Publishing
Content preview from Mastering Linux Kernel Development

Process memory descriptor

The kernel maintains all information on process memory segments and the corresponding translation table in a memory descriptor structure, which is of type struct mm_struct. The process descriptor structure task_struct contains a pointer *mm to the memory descriptor for the process. We shall discuss a few important elements of the memory descriptor structure:

struct mm_struct {               struct vm_area_struct *mmap; /* list of VMAs */               struct rb_root mm_rb;               u32 vmacache_seqnum; /* per-thread vmacache */#ifdef CONFIG_MMU             unsigned long (*get_unmapped_area) (struct file *filp, unsigned long addr, unsigned long len,                                                                                                    unsigned long pgoff, unsigned long flags); #endif            unsigned long mmap_base;               /* base of mmap area */ unsigned long mmap_legacy_base; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Kernel Development, Third Edition

Linux Kernel Development, Third Edition

Robert Love
Understanding the Linux Kernel

Understanding the Linux Kernel

Daniel P. Bovet, Marco Cesati
Linux Kernel Debugging

Linux Kernel Debugging

Kaiwan N. Billimoria

Publisher Resources

ISBN: 9781785883057Other