Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:disk_unlock_native_capacity

Proto:static bool disk_unlock_native_capacity(struct gendisk *disk)

Type:bool

Parameter:

TypeParameterName
struct gendisk *disk
449  bdops = fops
451  If unlock_native_capacity && Not (flags & GENHD_FL_NATIVE_CAPACITY) Then
453  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
454  unlock_native_capacity(disk)
455  flags |= GENHD_FL_NATIVE_CAPACITY
456  Return true
457  Else
458  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
459  Return false
Caller
NameDescribe
blk_add_partition
blk_add_partitions