函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ext2_fs.h Create Date:2022-07-27 15:19:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ext2_image_size

函数原型:static inline u64 ext2_image_size(void *ext2_sb)

返回类型:u64

参数:

类型参数名称
void *ext2_sb
36  p等于ext2_sb
37  如果*pEXT2_SB_MAGIC_OFFSET的和不等于cpu_to_le16(EXT2_SUPER_MAGIC)则返回:0
39  返回:le32_to_cpup((__le32 * )(p + EXT2_SB_BLOCKS_OFFSET))左移le32_to_cpup((__le32 * )(p + EXT2_SB_BSIZE_OFFSET))位
调用者
名称描述
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