函数逻辑报告 |
Source Code:block\compat_ioctl.c |
Create Date:2022-07-27 19:37:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Most 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.
函数原型:long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
unsigned | cmd | |
unsigned long | arg |
318 | ret等于负No ioctl command |
336 | 当:cmd恒等于get device geometry |
338 | 当:cmd恒等于BLKPBSZGET |
339 | 返回:compat_put_uint(arg, bdev_physical_block_size(bdev)) |
341 | 返回:compat_put_uint(arg, bdev_io_min(bdev)) |
343 | 返回:compat_put_uint(arg, bdev_io_opt(bdev)) |
344 | 当:cmd恒等于BLKALIGNOFF |
345 | 返回:compat_put_int(arg, bdev_alignment_offset(bdev)) |
346 | 当:cmd恒等于BLKDISCARDZEROES |
347 | 返回:compat_put_uint(arg, 0) |
348 | 当:cmd恒等于lush buffer cache |
350 | 当:cmd恒等于BLKDISCARD |
351 | 当:cmd恒等于BLKSECDISCARD |
352 | 当:cmd恒等于BLKZEROOUT |
357 | 当:cmd恒等于-read partition table |
359 | 当:cmd恒等于BLKRESETZONE |
360 | 当:cmd恒等于BLKOPENZONE |
361 | 当:cmd恒等于BLKCLOSEZONE |
362 | 当:cmd恒等于BLKFINISHZONE |
363 | 当:cmd恒等于BLKGETZONESZ |
364 | 当:cmd恒等于BLKGETNRZONES |
367 | 当:cmd恒等于BLKBSZSET_32 |
379 | 返回:compat_put_int(arg, bdev_read_only(bdev) != 0) |
380 | 当:cmd恒等于BLKBSZGET_32 |
381 | 返回:compat_put_int(arg, block_size(bdev)) |
382 | 当:cmd恒等于get block device sector size |
383 | 返回:compat_put_int(arg, bdev_logical_block_size(bdev)) |
387 | 返回:compat_put_ushort(arg, max_sectors) |
388 | 当:cmd恒等于BLKROTATIONAL |
389 | 返回:compat_put_ushort(arg, !blk_queue_nonrot(bdev_get_queue(bdev))) |
401 | 返回:compat_put_ulong(arg, size >> 9) |
403 | 当:cmd恒等于BLKGETSIZE64_32 |
406 | 当:cmd恒等于BLKTRACESETUP32 |
407 | 当:cmd恒等于BLKTRACESTART |
408 | 当:cmd恒等于BLKTRACESTOP |
409 | 当:cmd恒等于BLKTRACETEARDOWN |
411 | 返回:ret |
412 | 当:cmd恒等于IOC_PR_REGISTER |
413 | 当:cmd恒等于IOC_PR_RESERVE |
414 | 当:cmd恒等于IOC_PR_RELEASE |
415 | 当:cmd恒等于IOC_PR_PREEMPT |
416 | 当:cmd恒等于IOC_PR_PREEMPT_ABORT |
417 | 当:cmd恒等于IOC_PR_CLEAR |
420 | 默认 |
421 | 如果compat_ioctl则ret等于compat_ioctl(bdev, mode, cmd, arg) |
423 | 如果ret恒等于负No ioctl command 则ret等于compat_blkdev_driver_ioctl(bdev, mode, cmd, arg) |
425 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |