• Home
  • Raw
  • Download

Lines Matching refs:nid

58 	int nid = dev->id;  in node_read_meminfo()  local
61 si_meminfo_node(&i, nid); in node_read_meminfo()
74 nid, K(i.totalram), in node_read_meminfo()
75 nid, K(i.freeram), in node_read_meminfo()
76 nid, K(i.totalram - i.freeram), in node_read_meminfo()
77 nid, K(node_page_state(nid, NR_ACTIVE_ANON) + in node_read_meminfo()
78 node_page_state(nid, NR_ACTIVE_FILE)), in node_read_meminfo()
79 nid, K(node_page_state(nid, NR_INACTIVE_ANON) + in node_read_meminfo()
80 node_page_state(nid, NR_INACTIVE_FILE)), in node_read_meminfo()
81 nid, K(node_page_state(nid, NR_ACTIVE_ANON)), in node_read_meminfo()
82 nid, K(node_page_state(nid, NR_INACTIVE_ANON)), in node_read_meminfo()
83 nid, K(node_page_state(nid, NR_ACTIVE_FILE)), in node_read_meminfo()
84 nid, K(node_page_state(nid, NR_INACTIVE_FILE)), in node_read_meminfo()
85 nid, K(node_page_state(nid, NR_UNEVICTABLE)), in node_read_meminfo()
86 nid, K(node_page_state(nid, NR_MLOCK))); in node_read_meminfo()
94 nid, K(i.totalhigh), in node_read_meminfo()
95 nid, K(i.freehigh), in node_read_meminfo()
96 nid, K(i.totalram - i.totalhigh), in node_read_meminfo()
97 nid, K(i.freeram - i.freehigh)); in node_read_meminfo()
118 nid, K(node_page_state(nid, NR_FILE_DIRTY)), in node_read_meminfo()
119 nid, K(node_page_state(nid, NR_WRITEBACK)), in node_read_meminfo()
120 nid, K(node_page_state(nid, NR_FILE_PAGES)), in node_read_meminfo()
121 nid, K(node_page_state(nid, NR_FILE_MAPPED)), in node_read_meminfo()
122 nid, K(node_page_state(nid, NR_ANON_PAGES)), in node_read_meminfo()
123 nid, K(i.sharedram), in node_read_meminfo()
124 nid, node_page_state(nid, NR_KERNEL_STACK) * in node_read_meminfo()
126 nid, K(node_page_state(nid, NR_PAGETABLE)), in node_read_meminfo()
127 nid, K(node_page_state(nid, NR_UNSTABLE_NFS)), in node_read_meminfo()
128 nid, K(node_page_state(nid, NR_BOUNCE)), in node_read_meminfo()
129 nid, K(node_page_state(nid, NR_WRITEBACK_TEMP)), in node_read_meminfo()
130 nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE) + in node_read_meminfo()
131 node_page_state(nid, NR_SLAB_UNRECLAIMABLE)), in node_read_meminfo()
132 nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE)), in node_read_meminfo()
134 nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE)) in node_read_meminfo()
135 , nid, in node_read_meminfo()
136 K(node_page_state(nid, NR_ANON_TRANSPARENT_HUGEPAGES) * in node_read_meminfo()
139 nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE))); in node_read_meminfo()
141 n += hugetlb_report_node_meminfo(nid, buf + n); in node_read_meminfo()
170 int nid = dev->id; in node_read_vmstat() local
176 node_page_state(nid, i)); in node_read_vmstat()
185 int nid = dev->id; in node_read_distance() local
196 len += sprintf(buf + len, "%s%d", i ? " " : "", node_distance(nid, i)); in node_read_distance()
317 int register_cpu_under_node(unsigned int cpu, unsigned int nid) in register_cpu_under_node() argument
322 if (!node_online(nid)) in register_cpu_under_node()
329 ret = sysfs_create_link(&node_devices[nid]->dev.kobj, in register_cpu_under_node()
336 &node_devices[nid]->dev.kobj, in register_cpu_under_node()
337 kobject_name(&node_devices[nid]->dev.kobj)); in register_cpu_under_node()
340 int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) in unregister_cpu_under_node() argument
344 if (!node_online(nid)) in unregister_cpu_under_node()
351 sysfs_remove_link(&node_devices[nid]->dev.kobj, in unregister_cpu_under_node()
354 kobject_name(&node_devices[nid]->dev.kobj)); in unregister_cpu_under_node()
379 int register_mem_sect_under_node(struct memory_block *mem_blk, int nid) in register_mem_sect_under_node() argument
386 if (!node_online(nid)) in register_mem_sect_under_node()
408 if (page_nid != nid) in register_mem_sect_under_node()
410 ret = sysfs_create_link_nowarn(&node_devices[nid]->dev.kobj, in register_mem_sect_under_node()
417 &node_devices[nid]->dev.kobj, in register_mem_sect_under_node()
418 kobject_name(&node_devices[nid]->dev.kobj)); in register_mem_sect_under_node()
442 int nid; in unregister_mem_sect_under_nodes() local
444 nid = get_nid_for_pfn(pfn); in unregister_mem_sect_under_nodes()
445 if (nid < 0) in unregister_mem_sect_under_nodes()
447 if (!node_online(nid)) in unregister_mem_sect_under_nodes()
449 if (node_test_and_set(nid, *unlinked_nodes)) in unregister_mem_sect_under_nodes()
451 sysfs_remove_link(&node_devices[nid]->dev.kobj, in unregister_mem_sect_under_nodes()
454 kobject_name(&node_devices[nid]->dev.kobj)); in unregister_mem_sect_under_nodes()
460 static int link_mem_sections(int nid) in link_mem_sections() argument
462 unsigned long start_pfn = NODE_DATA(nid)->node_start_pfn; in link_mem_sections()
463 unsigned long end_pfn = start_pfn + NODE_DATA(nid)->node_spanned_pages; in link_mem_sections()
485 ret = register_mem_sect_under_node(mem_blk, nid); in link_mem_sections()
518 static void init_node_hugetlb_work(int nid) in init_node_hugetlb_work() argument
520 INIT_WORK(&node_devices[nid]->node_work, node_hugetlb_work); in init_node_hugetlb_work()
527 int nid = mnb->status_change_nid; in node_memory_callback() local
536 if (nid != NUMA_NO_NODE) in node_memory_callback()
537 schedule_work(&node_devices[nid]->node_work); in node_memory_callback()
553 static int link_mem_sections(int nid) { return 0; } in link_mem_sections() argument
564 static void init_node_hugetlb_work(int nid) { } in init_node_hugetlb_work() argument
568 int register_one_node(int nid) in register_one_node() argument
573 if (node_online(nid)) { in register_one_node()
574 int p_node = parent_node(nid); in register_one_node()
577 if (p_node != nid) in register_one_node()
580 node_devices[nid] = kzalloc(sizeof(struct node), GFP_KERNEL); in register_one_node()
581 if (!node_devices[nid]) in register_one_node()
584 error = register_node(node_devices[nid], nid, parent); in register_one_node()
588 if (cpu_to_node(cpu) == nid) in register_one_node()
589 register_cpu_under_node(cpu, nid); in register_one_node()
593 error = link_mem_sections(nid); in register_one_node()
596 init_node_hugetlb_work(nid); in register_one_node()
603 void unregister_one_node(int nid) in unregister_one_node() argument
605 if (!node_devices[nid]) in unregister_one_node()
608 unregister_node(node_devices[nid]); in unregister_one_node()
609 node_devices[nid] = NULL; in unregister_one_node()