函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:validate_disk - wrapper for lower-level driver's revalidate_disk call-back*@disk: struct gendisk to be revalidated* This routine is a wrapper for lower-level driver's revalidate_disk* call-backs. It is used to do common pre and post operations needed

函数原型:int revalidate_disk(struct gendisk *disk)

返回类型:int

参数:

类型参数名称
struct gendisk *disk
1449  ret等于0
1451  如果revalidate_diskret等于revalidate_disk(disk)
1458  如果非flags按位与GENHD_FL_HIDDEN的值则
1459  bdev等于dget_disk - do bdget() by gendisk and partition number*@disk: gendisk of interest*@partno: partition number* Find partition @partno from @disk, do bdget() on it.* CONTEXT:* Don't care.* RETURNS:* Resulting block_device on success, NULL on failure.
1461  如果非bdev则返回:ret
1464  mutex_lock( & open/close mutex )
1465  heck_disk_size_change - checks for disk size change and adjusts bdev size
1466  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1467  bdput(bdev)
1469  返回:ret