函数逻辑报告 |
Source Code:block\ioctl.c |
Create Date:2022-07-27 18:52:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:always keep this in sync with compat_blkdev_ioctl()
函数原型:int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
fmode_t | mode | |
unsigned | cmd | |
unsigned long | arg |
494 | 当:cmd恒等于lush buffer cache |
495 | 返回:blkdev_flushbuf(bdev, mode, cmd, arg) |
497 | 返回:blkdev_roset(bdev, mode, cmd, arg) |
498 | 当:cmd恒等于BLKDISCARD |
499 | 返回:blk_ioctl_discard(bdev, mode, arg, 0) |
500 | 当:cmd恒等于BLKSECDISCARD |
501 | 返回:blk_ioctl_discard(bdev, mode, arg, ssue a secure erase ) |
503 | 当:cmd恒等于BLKZEROOUT |
504 | 返回:blk_ioctl_zeroout(bdev, mode, arg) |
506 | 返回:blkdev_report_zones_ioctl(bdev, mode, cmd, arg) |
507 | 当:cmd恒等于BLKRESETZONE |
508 | 当:cmd恒等于BLKOPENZONE |
509 | 当:cmd恒等于BLKCLOSEZONE |
510 | 当:cmd恒等于BLKFINISHZONE |
511 | 返回:blkdev_zone_mgmt_ioctl(bdev, mode, cmd, arg) |
512 | 当:cmd恒等于BLKGETZONESZ |
513 | 返回:put_uint(arg, bdev_zone_sectors(bdev)) |
514 | 当:cmd恒等于BLKGETNRZONES |
515 | 返回:put_uint(arg, blkdev_nr_zones(bd_disk)) |
516 | 当:cmd恒等于get device geometry |
517 | 返回:blkdev_getgeo(bdev, argp) |
524 | 返回:put_int(arg, bdev_read_only(bdev) != 0) |
526 | 返回:put_int(arg, block_size(bdev)) |
527 | 当:cmd恒等于get block device sector size |
528 | 返回:put_int(arg, bdev_logical_block_size(bdev)) |
529 | 当:cmd恒等于BLKPBSZGET |
530 | 返回:put_uint(arg, bdev_physical_block_size(bdev)) |
532 | 返回:put_uint(arg, bdev_io_min(bdev)) |
534 | 返回:put_uint(arg, bdev_io_opt(bdev)) |
535 | 当:cmd恒等于BLKALIGNOFF |
536 | 返回:put_int(arg, bdev_alignment_offset(bdev)) |
537 | 当:cmd恒等于BLKDISCARDZEROES |
542 | 返回:put_ushort(arg, max_sectors) |
543 | 当:cmd恒等于BLKROTATIONAL |
544 | 返回:put_ushort(arg, !blk_queue_nonrot(bdev_get_queue(bdev))) |
552 | 返回:set the logical block size |
554 | 返回:blkpg_ioctl(bdev, argp) |
555 | 当:cmd恒等于-read partition table |
556 | 返回:blkdev_reread_part(bdev) |
564 | 当:cmd恒等于BLKTRACESTART |
565 | 当:cmd恒等于BLKTRACESTOP |
566 | 当:cmd恒等于BLKTRACESETUP |
567 | 当:cmd恒等于BLKTRACETEARDOWN |
568 | 返回:blk_trace_ioctl(bdev, cmd, argp) |
569 | 当:cmd恒等于IOC_PR_REGISTER |
570 | 返回:blkdev_pr_register(bdev, argp) |
571 | 当:cmd恒等于IOC_PR_RESERVE |
572 | 返回:blkdev_pr_reserve(bdev, argp) |
573 | 当:cmd恒等于IOC_PR_RELEASE |
574 | 返回:blkdev_pr_release(bdev, argp) |
575 | 当:cmd恒等于IOC_PR_PREEMPT |
576 | 返回:blkdev_pr_preempt(bdev, argp, false) |
577 | 当:cmd恒等于IOC_PR_PREEMPT_ABORT |
578 | 返回:blkdev_pr_preempt(bdev, argp, true) |
579 | 当:cmd恒等于IOC_PR_CLEAR |
580 | 返回:blkdev_pr_clear(bdev, argp) |
581 | 默认 |
582 | 返回:__blkdev_driver_ioctl(bdev, mode, cmd, arg) |
名称 | 描述 |
---|---|
compat_blkpg_ioctl | |
compat_blkdev_ioctl | 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. |
ioctl_by_bdev |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |