Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blkdev_getgeo

Proto:static int blkdev_getgeo(struct block_device *bdev, struct hd_geometry __user *argp)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
struct hd_geometry __user *argp
435  disk = bd_disk
439  If Not argp Then Return -EINVAL
441  If Not getgeo Then Return -ENOTTY
448  memset( & geo, 0, size of geo )
449  start = get_start_sect(bdev)
450  ret = getgeo(bdev, & geo)
451  If ret Then Return ret
453  If copy_to_user(argp, & geo, size of geo ) Then Return -EFAULT
455  Return 0
Caller
NameDescribe
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()