Lines Matching defs:memory
2 * drivers/base/memory.c - basic Memory class support
8 * a SPARSEMEM-memory-model system's physical memory in /sysfs.
19 #include <linux/memory.h>
30 #define MEMORY_CLASS_NAME "memory"
82 * register_memory - Setup a sysfs device for a memory block
85 int register_memory(struct memory_block *memory, struct mem_section *section)
89 memory->sysdev.cls = &memory_sysdev_class;
90 memory->sysdev.id = __section_nr(section);
92 error = sysdev_register(&memory->sysdev);
97 unregister_memory(struct memory_block *memory, struct mem_section *section)
99 BUG_ON(memory->sysdev.cls != &memory_sysdev_class);
100 BUG_ON(memory->sysdev.id != __section_nr(section));
103 kobject_put(&memory->sysdev.kobj);
104 sysdev_unregister(&memory->sysdev);
121 * Show whether the section of memory is likely to be hot-removable
284 * is a way to differentiate between memory ranges that
368 * Support for offlining pages of memory
519 * need an interface for the VM to add new memory regions,
536 * Initialize the sysfs support for memory devices...
550 * Create entries for memory sections that were found