Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Helper to sys_swapon determining if a given swap* backing device queue supports DISCARD operations.

Proto:static bool swap_discardable(struct swap_info_struct *si)

Type:bool

Parameter:

TypeParameterName
struct swap_info_struct *si
3101  q = bdev_get_queue(swap device or bdev of swap file )
3103  If Not q || Not blk_queue_discard(q) Then Return false
3106  Return true
Caller
NameDescribe
SYSCALL_DEFINE2