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

Node descriptor structure

Node descriptor structure pg_data_t is declared in kernel header mmzone.h:

/* include/linux/mmzone.h */typedef struct pglist_data {  struct zone node_zones[MAX_NR_ZONES];  struct zonelist node_zonelists[MAX_ZONELISTS];  int nr_zones;#ifdef CONFIG_FLAT_NODE_MEM_MAP /* means !SPARSEMEM */  struct page *node_mem_map;#ifdef CONFIG_PAGE_EXTENSION  struct page_ext *node_page_ext;#endif#endif#ifndef CONFIG_NO_BOOTMEM  struct bootmem_data *bdata;#endif#ifdef CONFIG_MEMORY_HOTPLUG spinlock_t node_size_lock;#endif unsigned long node_start_pfn; unsigned long node_present_pages; /* total number of physical pages */ unsigned long node_spanned_pages;  int node_id; wait_queue_head_t kswapd_wait; wait_queue_head_t pfmemalloc_wait; struct ...
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