Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_file_hugepages

Proto:static inline bool is_file_hugepages(struct file *file)

Type:bool

Parameter:

TypeParameterName
struct file *file
387  If f_op == hugetlbfs_file_operations Then Return true
390  Return is_file_shm_hugepages(file)
Caller
NameDescribe
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