函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compat_hdio_getgeo

函数原型:static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, struct compat_hd_geometry __user *ugeo)

返回类型:int

参数:

类型参数名称
struct gendisk *disk
struct block_device *bdev
struct compat_hd_geometry __user *ugeo
58  如果非ugeo则返回:负EINVAL
60  如果非getgeo则返回:负ENOTTY
63  memset( & geo, 0, geo的长度)
68  start等于get_start_sect(bdev)
69  ret等于getgeo(bdev, & geo)
70  如果ret则返回:ret
73  ret等于copy_to_user(ugeo, & geo, 4)
74  ret或等于put_user - Write a simple value into user space(start, & start)
75  如果retret等于负EFAULT
78  返回:ret
调用者
名称描述
compat_blkdev_ioctlMost of the generic ioctls are handled in the normal fallback path.This assumes the blkdev's low level compat_ioctl always returnsENOIOCTLCMD for unknown ioctls.