函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\huge_memory.c Create Date:2022-07-27 17:34:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__thp_get_unmapped_area

函数原型:static unsigned long __thp_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, loff_t off, unsigned long flags, unsigned long size)

返回类型:unsigned long

参数:

类型参数名称
struct file *filp
unsigned longaddr
unsigned longlen
loff_toff
unsigned longflags
unsigned longsize
526  off_end等于offlen
527  off_align等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(off, size)
530  如果off_end小于等于off_alignoff_endoff_align小于size则返回:0
533  len_pad等于lensize
534  如果len_pad小于lenofflen_pad小于off则返回:0
537  ret等于get_unmapped_area(filp, addr, len_pad, off >> PAGE_SHIFT determines the page size , flags)
544  如果IS_ERR_VALUE(ret)则返回:0
551  如果ret恒等于addr则返回:addr
554  ret加等于offret按位与size减1
555  返回:ret
调用者
名称描述
thp_get_unmapped_area