函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compat_blkdev_driver_ioctl

函数原型:static int compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
fmode_tmode
unsignedcmd
unsigned longarg
214  :cmd恒等于get current unmask setting
215  :cmd恒等于get current IDE blockmode setting
216  :cmd恒等于get keep-settings-on-reset flag
217  :cmd恒等于get current io_32bit setting
218  :cmd恒等于get ignore-write-error flag
219  :cmd恒等于get use-dma flag
220  :cmd恒等于get nice flags
221  :cmd恒等于get write cache mode on|off
222  :cmd恒等于get acoustic value
223  :cmd恒等于HDIO_GET_ADDRESS
224  :cmd恒等于get the bus state of the hwif
225  返回:compat_hdio_ioctl(bdev, mode, cmd, arg)
226  :cmd恒等于(struct cdrom_read_audio)
227  返回:compat_cdrom_read_audio(bdev, mode, cmd, arg)
228  :cmd恒等于send a packet to the drive
229  返回:compat_cdrom_generic_command(bdev, mode, cmd, arg)
235  :cmd恒等于set max sectors per request (ll_rw_blk.c)
240  :cmd恒等于get IDE identification info
241  :cmd恒等于xecute task and special drive command
242  :cmd恒等于xecute a special drive command
244  :cmd恒等于0x330
246  :cmd恒等于Pause Audio Operation
247  :cmd恒等于Resume paused Audio Operation
248  :cmd恒等于Play Audio MSF (struct cdrom_msf)
249  :cmd恒等于Play Audio Track/index (struct cdrom_ti)
250  :cmd恒等于Read TOC header (struct cdrom_tochdr)
251  :cmd恒等于Read TOC entry (struct cdrom_tocentry)
252  :cmd恒等于Stop the cdrom drive
253  :cmd恒等于Start the cdrom drive
254  :cmd恒等于Ejects the cdrom media
255  :cmd恒等于Control output volume (struct cdrom_volctrl)
256  :cmd恒等于Read subchannel data (struct cdrom_subchnl)
257  :cmd恒等于Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession)
258  :cmd恒等于Obtain the "Universal Product Code" if available (struct cdrom_mcn)
259  :cmd恒等于hard-reset the drive
260  :cmd恒等于Get the drive's volume setting (struct cdrom_volctrl)
261  :cmd恒等于seek msf address
262  :cmd恒等于(struct cdrom_blk)
263  :cmd恒等于pendant of CDROMEJECT
264  :cmd恒等于Get disc type, etc.
265  :cmd恒等于Get number of slots
266  :cmd恒等于get capabilities
271  :cmd恒等于Read CDROM mode 2 data (2336 Bytes) (struct cdrom_read)
272  :cmd恒等于Read CDROM mode 1 data (2048 Bytes)(struct cdrom_read)
273  :cmd恒等于ad data in raw mode (2352 Bytes)(struct cdrom_read)
274  :cmd恒等于ad data in cooked mode
275  :cmd恒等于ad all 2646 bytes
277  :cmd恒等于Read structure
278  :cmd恒等于Write structure
279  :cmd恒等于Authentication
280  arg等于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.
283  :cmd恒等于change IDE blockmode
284  :cmd恒等于permit other irqs during I/O
285  :cmd恒等于keep ioctl settings on reset
286  :cmd恒等于change io_32bit flags
287  :cmd恒等于change ignore-write-error flag
288  :cmd恒等于change use-dma flag
289  :cmd恒等于config interface to new speed
290  :cmd恒等于set nice flags
291  :cmd恒等于change write cache enable-disable
292  :cmd恒等于change acoustic behavior
293  :cmd恒等于set the bus state of the hwif
294  :cmd恒等于change lba addressing modes
295  :cmd恒等于able(1)/disable(0) auto-ejecting
296  :cmd恒等于Set behavior options
297  :cmd恒等于Clear behavior options
298  :cmd恒等于Set the CD-ROM speed
299  :cmd恒等于Select disc (for juke-boxes)
300  :cmd恒等于Check is media changed
301  :cmd恒等于Get tray position, etc.
302  :cmd恒等于lock or unlock door
303  :cmd恒等于Turn debug messages on/off
304  退出
305  默认
307  返回:负No ioctl command
310  返回:__blkdev_driver_ioctl(bdev, mode, cmd, arg)
调用者
名称描述
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.