Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-28 05:46:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bdev_alignment_offset

Proto:static inline int bdev_alignment_offset(struct block_device *bdev)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
1358  q = bdev_get_queue(bdev)
1360  If misaligned Then Return -1
1363  If bdev != bd_contains Then Return alignment_offset
1366  Return alignment_offset
Caller
NameDescribe
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()
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.