函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_queue_write_cache - configure queue's write cache*@q: the request queue for the device*@wc: write back cache on or off*@fua: device supports FUA writes, if true* Tell the block layer about the write cache of @q.

函数原型:void blk_queue_write_cache(struct request_queue *q, bool wc, bool fua)

返回类型:void

参数:

类型参数名称
struct request_queue *q
boolwc
boolfua
823  如果wclk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
825  否则lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
827  如果fualk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
829  否则lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
832  wbt_set_write_cache(q, test_bit(Write back caching , & * various queue flags, see QUEUE_* below))