Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\ioprio.c Create Date:2022-07-28 17:21:45
Last Modify:2020-03-17 23:21:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ioprio_check_cap

Proto:int ioprio_check_cap(int ioprio)

Type:int

Parameter:

TypeParameterName
intioprio
67  class = IOPRIO_PRIO_CLASS(ioprio)
68  data = IOPRIO_PRIO_DATA(ioprio)
71  Case class == IOPRIO_CLASS_RT
72  If Not Check operation authority Then Return -EPERM
76  Case class == IOPRIO_CLASS_BE
77  If data >= 8 best effort priority levels are supported || data < 0 Then Return -EINVAL
80  Break
81  Case class == IOPRIO_CLASS_IDLE
82  Break
83  Case class == IOPRIO_CLASS_NONE
84  If data Then Return -EINVAL
86  Break
87  Default
88  Return -EINVAL
91  Return 0
Caller
NameDescribe
SYSCALL_DEFINE3
io_prep_rw