Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_blkdev_driver_ioctl

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

Type:int

Parameter:

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