Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_cdrom_read_audio

Proto:static int compat_cdrom_read_audio(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
fmode_tmode
unsigned intcmd
unsigned longarg
121  __user * cdread_audio
122  __user * cdread_audio32
124  __user * datap
126  cdread_audio = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.
127  cdread_audio32 = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
129  If copy_in_user( & ame address , & addr, ( size of cdread_audio32 - sizeof(compat_caddr_t))) Then Return -EFAULT
135  If Get a simple variable from user space(data, & buf) Then Return -EFAULT
137  datap = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
138  If Write a simple value into user space(datap, & ame buffer (size: nframes*2352 bytes) ) Then Return -EFAULT
141  Return __blkdev_driver_ioctl(bdev, mode, cmd, (unsignedlong)cdread_audio)
Caller
NameDescribe
compat_blkdev_driver_ioctl