函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_file_hugepages

函数原型:static inline bool is_file_hugepages(struct file *file)

返回类型:bool

参数:

类型参数名称
struct file *file
387  如果f_op恒等于hugetlbfs_file_operations则返回:true
390  返回:is_file_shm_hugepages(file)
调用者
名称描述
do_mmapThe caller must hold down_write(¤t->mm->mmap_sem).
ksys_mmap_pgoff
accountable_mappingWe account for memory if it's a private writeable mapping,* not hugepages and VM_NORESERVE wasn't set.
memfd_file_seals_ptr
shm_destroy
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.
shm_add_rss_swapCalculate and add used RSS and swap pages of a shm.* Called with shm_ids.rwsem held as a reader
shmctl_do_lock
do_shmatFix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.* NOTE! Despite the name, this is NOT a direct system call entrypoint. The* "raddr" thing points to kernel space, and there has to be a wrapper around* this.
io_sqe_buffer_register