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()
356 * When called via device_online() without configuring the online_type, in memory_subsys_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()
396 /* mem->online_type is protected by device_hotplug_lock */ in state_store()
397 mem->online_type in state_store()
438 print_allowed_zone(char * buf,int len,int nid,struct memory_group * group,unsigned long start_pfn,unsigned long nr_pages,int online_type,struct zone * default_zone) print_allowed_zone() argument
522 const int online_type = mhp_online_type_from_str(buf); auto_online_blocks_store() local
[all...]
/linux/mm/
H A Dmemory_hotplug.c242 void mhp_set_default_online_type(int online_type) in mhp_set_default_online_type() argument
244 mhp_default_online_type = online_type; in mhp_set_default_online_type()
249 const int online_type = mhp_online_type_from_str(str); in setup_memhp_default_state() local
251 if (online_type >= 0) in setup_memhp_default_state()
252 mhp_default_online_type = online_type; in setup_memhp_default_state()
1070 struct zone *zone_for_pfn_range(int online_type, int nid, in zone_for_pfn_range() argument
1074 if (online_type == MMOP_ONLINE_KERNEL) in zone_for_pfn_range()
1077 if (online_type == MMOP_ONLINE_MOVABLE) in zone_for_pfn_range()
1350 mem->online_type = mhp_get_default_online_type(); in online_memory_block()
2351 uint8_t online_type = MMOP_ONLINE_KERNEL; in 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.h304 /* Default online_type (MMOP_*) when new memory blocks are added. */
306 extern void mhp_set_default_online_type(int online_type);
328 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)