Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int revalidate_disk(struct gendisk *disk)

Type:int

Parameter:

TypeParameterName
struct gendisk *disk
1449  ret = 0
1451  If revalidate_disk Then ret = revalidate_disk(disk)
1458  If Not (flags & GENHD_FL_HIDDEN) Then
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  If Not bdev Then Return 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  Return ret