Function report |
Source Code:block\genhd.c |
Create Date:2022-07-28 17:18:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:del_gendisk
Proto:void del_gendisk(struct gendisk *disk)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct gendisk * | disk |
778 | blk_integrity_del(disk) |
779 | disk_del_events(disk) |
785 | lock for writing |
790 | invalidate_partition(disk, partno) |
791 | bdev_unhash_inode(part_devt(part)) |
796 | invalidate_partition(disk, 0) |
797 | bdev_unhash_inode(disk_devt(disk)) |
798 | set_capacity(disk, 0) |
799 | flags &= ~GENHD_FL_UP |
802 | If Not (flags & GENHD_FL_HIDDEN) Then sysfs_remove_link( & kobj, "bdi") |
804 | If queue Then |
809 | If Not (flags & GENHD_FL_HIDDEN) Then bdi_unregister(backing_dev_info) |
812 | Else |
813 | WARN_ON(1) |
816 | If Not (flags & GENHD_FL_HIDDEN) Then blk_unregister_region(disk_devt(disk), maximum number of minors, =1 for * disks that can't be partitioned. ) |
829 | part_stat_set_all( & part0, 0) |
830 | stamp = 0 |
831 | If Not sysfs_deprecated Then sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))) |
833 | pm_runtime_set_memalloc_noio(disk_to_dev(disk), false) |
834 | device_del(disk_to_dev(disk)) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |