Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:08
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blkdev_max_block

Proto:static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size)

Type:sector_t

Parameter:

TypeParameterName
struct block_device *bdev
unsigned intsize
920  retval = ~0
921  sz = NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
923  If sz Then
924  sizebits = assumes size > 256
925  retval = sz >> sizebits
927  Return retval
Caller
NameDescribe
init_page_buffersInitialise the state of a blockdev page's buffers.