Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ext2_fs.h Create Date:2022-07-28 13:57:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ext2_image_size

Proto:static inline u64 ext2_image_size(void *ext2_sb)

Type:u64

Parameter:

TypeParameterName
void *ext2_sb
36  p = ext2_sb
37  If *(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC) Then Return 0
39  Return le32_to_cpup((__le32 * )(p + EXT2_SB_BLOCKS_OFFSET)) << le32_to_cpup((__le32 * )(p + EXT2_SB_BSIZE_OFFSET))
Caller
NameDescribe
identify_ramdisk_imageThis routine tries to find a RAM disk image to load, and returns the* number of blocks to read for a non-compressed image, 0 if the image* is a compressed image, and -1 if an image with the right magic* numbers could not be found