函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\ioctl.c Create Date:2022-07-27 18:51:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkdev_pr_preempt

函数原型:static int blkdev_pr_preempt(struct block_device *bdev, struct pr_preempt __user *arg, bool abort)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
struct pr_preempt __user *arg
boolabort
345  ops等于pr_ops
348  如果非操作权限检查则返回:负EPERM
350  如果非ops或非pr_preempt则返回:负EOPNOTSUPP
352  如果copy_from_user( & p, arg, p的长度)则返回:负EFAULT
355  如果flags则返回:负EOPNOTSUPP
357  返回:pr_preempt(bdev, old_key, new_key, type, abort)
调用者
名称描述
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()