函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:36:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:show_migration_types

函数原型:static void show_migration_types(unsigned char type)

返回类型:void

参数:

类型参数名称
unsigned chartype
5191  static const char types[MIGRATE_TYPES] = {[MIGRATE_UNMOVABLE] = 'U', [MIGRATE_MOVABLE] = 'M', [MIGRATE_RECLAIMABLE] = 'E', [MIGRATE_HIGHATOMIC] = 'H', [MIGRATE_CMA] = 'C', [MIGRATE_ISOLATE] = 'I', }
5204  p等于tmp
5207 i小于MIGRATE_TYPES循环
5208  如果type按位与1左移i位则p自加等于types[i]
5212  p等于'\0'
5213  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
调用者
名称描述
show_free_areasShow free area list (used inside shift_scroll-lock stuff)* We also calculate the percentage fragmentation