函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:49:43
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:swap_show

函数原型:static int swap_show(struct seq_file *swap, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *swap
void *v
2757  si等于v
2761  如果si恒等于SEQ_START_TOKEN
2762  seq_puts(swap, "Filename\t\t\t\tType\t\tSize\tUsed\tPriority\n")
2763  返回:0
2766  file等于seldom referenced
2767  len等于seq_file_path(swap, file, " \t\n\\")
2768  seq_printf(swap, "%*s%s\t%u\t%u\t%d\n", len < 40 ? 40 - len : 1, " ", S_ISBLK(i_mode) ? "partition" : "file\t", al of usable pages of swap << (PAGE_SHIFT determines the page size - 10), umber of those currently in use << (PAGE_SHIFT determines the page size - 10), swap priority of this type )
2775  返回:0