函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hstate_sizelog

函数原型:static inline struct hstate *hstate_sizelog(int page_size_log)

返回类型:struct hstate

参数:

类型参数名称
intpage_size_log
486  如果非page_size_log则返回:default_hstate
489  返回:size_to_hstate(1UL << page_size_log)
调用者
名称描述
ksys_mmap_pgoff
newsegwseg - Create a new shared memory segment*@ns: namespace*@params: ptr to the structure that contains key, size and shmflg* Called with shm_ids.rwsem held as a writer.