Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:A disk events enabled device has the following sysfs nodes under* its /sys/block/X/ directory

Proto:static ssize_t __disk_events_show(unsigned int events, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
unsigned intevents list of all supported events
char *buf
1901  delim = ""
1902  pos = 0
1905  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(disk_events_strs) cycle If list of all supported events & 1 << i Then
1907  pos += sprintf(buf + pos, "%s%s", delim, disk_events_strs[i])
1909  delim = " "
1911  If pos Then pos += sprintf(buf + pos, "\n")
1913  Return pos
Caller
NameDescribe
disk_events_show