Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:19:17
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swap_show

Proto:static int swap_show(struct seq_file *swap, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *swap
void *v
2757  si = v
2761  If si == SEQ_START_TOKEN Then
2762  seq_puts(swap, "Filename\t\t\t\tType\t\tSize\tUsed\tPriority\n")
2763  Return 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  Return 0