Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:queue_wc_store

Proto:static ssize_t queue_wc_store(struct request_queue *q, const char *page, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
struct request_queue *q
const char *page
size_tcount
503  set = -1
505  If Not strncmp(page, "write back", 10) Then set = 1
507  Else if Not strncmp(page, "write through", 13) || Not strncmp(page, "none", 4) Then set = 0
511  If set == -1 Then Return -EINVAL
514  If set Then lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
516  Else lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
519  Return count