Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/base/
Dmemory.c197 zone = zone_for_pfn_range(mem->online_type, mem->nid, mem->group, in memory_block_online()
338 if (mem->online_type == MMOP_OFFLINE) in memory_subsys_online()
339 mem->online_type = MMOP_ONLINE; in memory_subsys_online()
342 mem->online_type = MMOP_OFFLINE; in memory_subsys_online()
360 const int online_type = mhp_online_type_from_str(buf); in state_store() local
364 if (online_type < 0) in state_store()
371 switch (online_type) { in state_store()
376 mem->online_type = online_type; in state_store()
417 int online_type, struct zone *default_zone) in print_allowed_zone() argument
421 zone = zone_for_pfn_range(online_type, nid, group, start_pfn, nr_pages); in print_allowed_zone()
[all …]
/linux-6.6.21/mm/
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()
1047 struct zone *zone_for_pfn_range(int online_type, int nid, in zone_for_pfn_range() argument
1051 if (online_type == MMOP_ONLINE_KERNEL) in zone_for_pfn_range()
1054 if (online_type == MMOP_ONLINE_MOVABLE) in zone_for_pfn_range()
1314 mem->online_type = mhp_default_online_type; in online_memory_block()
2266 uint8_t online_type = MMOP_ONLINE_KERNEL; in try_offline_memory_block() local
2278 online_type = MMOP_ONLINE_MOVABLE; in try_offline_memory_block()
2286 **online_types = online_type; in try_offline_memory_block()
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dmemory-hotplug.rst115 sysfs进行的操作正确同步。建议持有device_hotplug_lock(例如,保护online_type)。
/linux-6.6.21/include/linux/
Dmemory.h70 int online_type; /* for passing data to online routine */ member
Dmemory_hotplug.h353 extern struct zone *zone_for_pfn_range(int online_type, int nid,
/linux-6.6.21/Documentation/core-api/
Dmemory-hotplug.rst112 via sysfs. Holding device_hotplug_lock is advised (to e.g. protect online_type)