函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Helper to sys_swapon determining if a given swap* backing device queue supports DISCARD operations.

函数原型:static bool swap_discardable(struct swap_info_struct *si)

返回类型:bool

参数:

类型参数名称
struct swap_info_struct *si
3101  q等于bdev_get_queue(swap device or bdev of swap file )
3103  如果非q或非blk_queue_discard(q)则返回:false
3106  返回:true
调用者
名称描述
SYSCALL_DEFINE2