函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blkdev_pr_register

函数原型:static int blkdev_pr_register(struct block_device *bdev, struct pr_registration __user *arg)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
struct pr_registration __user *arg
291  ops等于pr_ops
294  如果非操作权限检查则返回:负EPERM
296  如果非ops或非pr_register则返回:负EOPNOTSUPP
298  如果copy_from_user( & reg, arg, reg的长度)则返回:负EFAULT
301  如果flags按位与gnore existing key 的反则返回:负EOPNOTSUPP
303  返回:pr_register(bdev, old_key, new_key, flags)
调用者
名称描述
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()