Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unregister_blkdev

Proto:void unregister_blkdev(unsigned int major, const char *name)

Type:void

Parameter:

TypeParameterName
unsigned intmajor
const char *name
421  struct blk_major_name * p = NULL
422  index = dex in the above - for now: assume no multimajor ranges
424  mutex_lock( & block_class_lock)
425  When n cycle If major == major Then
427  Break
428  If Not n || strcmp(name, name) Then
429  WARN_ON(1)
430  Else
431  p = n
432  n = next
434  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.
435  kfree(p)