Lines Matching defs:section
85 int register_memory(struct memory_block *memory, struct mem_section *section)
90 memory->sysdev.id = __section_nr(section);
97 unregister_memory(struct memory_block *memory, struct mem_section *section)
100 BUG_ON(memory->sysdev.id != __section_nr(section));
108 * use this as the physical section index that this memsection
121 * Show whether the section of memory is likely to be hot-removable
207 printk(KERN_WARNING "section number %ld page number %d "
431 * section belongs to...
438 static int add_memory_block(int nid, struct mem_section *section,
448 mem->phys_index = __section_nr(section);
454 ret = register_memory(mem, section);
479 struct memory_block *find_memory_block(struct mem_section *section)
487 * This only works because we know that section == sysdev->id
490 sprintf(&name[0], "%s%d", MEMORY_CLASS_NAME, __section_nr(section));
502 int remove_memory_block(unsigned long node_id, struct mem_section *section,
507 mem = find_memory_block(section);
513 unregister_memory(mem, section);
522 int register_new_memory(int nid, struct mem_section *section)
524 return add_memory_block(nid, section, MEM_OFFLINE, HOTPLUG);
527 int unregister_memory_section(struct mem_section *section)
529 if (!present_section(section))
532 return remove_memory_block(0, section, 0);