Home
last modified time | relevance | path

Searched refs:online_type (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/base/
H A Dmemory.c198 zone = zone_for_pfn_range(mem->online_type, mem->nid, mem->group, in memory_block_online()
359 if (mem->online_type == MMOP_OFFLINE) in memory_subsys_online()
360 mem->online_type = MMOP_ONLINE; in memory_subsys_online()
363 mem->online_type = MMOP_OFFLINE; in memory_subsys_online()
381 const int online_type = mhp_online_type_from_str(buf); in state_store() local
385 if (online_type < 0) in state_store()
392 switch (online_type) { in state_store()
397 mem->online_type = online_type; in state_store()
438 int online_type, struct zone *default_zone) in print_allowed_zone() argument
442 zone = zone_for_pfn_range(online_type, nid, group, start_pfn, nr_pages); in print_allowed_zone()
[all …]
/linux/mm/
H A Dmemory_hotplug.c230 const int online_type = mhp_online_type_from_str(str); in setup_memhp_default_state() local
232 if (online_type >= 0) in setup_memhp_default_state()
233 mhp_default_online_type = online_type; in setup_memhp_default_state()
1048 struct zone *zone_for_pfn_range(int online_type, int nid, in zone_for_pfn_range() argument
1052 if (online_type == MMOP_ONLINE_KERNEL) in zone_for_pfn_range()
1055 if (online_type == MMOP_ONLINE_MOVABLE) in zone_for_pfn_range()
1324 mem->online_type = mhp_default_online_type; in online_memory_block()
2338 uint8_t online_type = MMOP_ONLINE_KERNEL; in try_offline_memory_block()
2344 * Sense the online_type via the zone of the memory block. Offlining in try_offline_memory_block()
2350 online_type in try_offline_memory_block()
2337 uint8_t online_type = MMOP_ONLINE_KERNEL; try_offline_memory_block() local
[all...]
/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-hotplug.rst115 sysfs进行的操作正确同步。建议持有device_hotplug_lock(例如,保护online_type)。
/linux/include/linux/
H A Dmemory.h70 int online_type; /* for passing data to online routine */ member
H A Dmemory_hotplug.h375 extern struct zone *zone_for_pfn_range(int online_type, int nid,
/linux/Documentation/core-api/
H A Dmemory-hotplug.rst112 via sysfs. Holding device_hotplug_lock is advised (to e.g. protect online_type)