Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-28 17:03:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:configure queue's write cache

Proto:void blk_queue_write_cache(struct request_queue *q, bool wc, bool fua)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
boolwc
boolfua
823  If wc Then lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
825  Else lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
827  If fua Then lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
829  Else lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
832  wbt_set_write_cache(q, Determine whether a bit is set(Write back caching , & * various queue flags, see QUEUE_* below))