Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blkdev_pr_preempt

Proto:static int blkdev_pr_preempt(struct block_device *bdev, struct pr_preempt __user *arg, bool abort)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
struct pr_preempt __user *arg
boolabort
345  ops = pr_ops
348  If Not Check operation authority Then Return -EPERM
350  If Not ops || Not pr_preempt Then Return -EOPNOTSUPP
352  If copy_from_user( & p, arg, size of p ) Then Return -EFAULT
355  If flags Then Return -EOPNOTSUPP
357  Return pr_preempt(bdev, old_key, new_key, type, abort)
Caller
NameDescribe
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()