函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_file

函数原型:static inline struct file *get_file(struct file *f)

返回类型:struct file

参数:

类型参数名称
struct file *f
985  atomic_long_inc( & f_count)
986  返回:f
调用者
名称描述
dup_mmap
set_mm_exe_fileset_mm_exe_file - change a reference to the mm's executable file* This changes mm's executable file (shown as symlink /proc/[pid]/exe)
prctl_set_mm_exe_file
kcmp_epoll_target
bpf_task_fd_query
do_mmaphandle mapping creation for uClinux
mmap_region
__split_vma__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
SYSCALL_DEFINE5Emulation of deprecated remap_file_pages() syscall.
copy_vmaCopy the vma structure to a new location in the same mm,* prior to moving page table entries, to effect an mremap move.
SYSCALL_DEFINE3MS_SYNC syncs the entire file - including mappings
madvise_willneedSchedule all required I/O operations. Do not wait for completion.
madvise_removeApplication wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.
khugepaged_scan_mm_slot
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.
__pollwaitOk, Peter made a complicated, but straightforward multiple_wait() function
dup_fdAllocate a new files structure and copy contents from the* passed in files structure.* errorp will be valid only when the returned files_struct is NULL.
__close_fd_get_filevariant of __close_fd that gets a ref on the file for later fput
do_dup2
f_dupfd
maybe_unlock_mmap_for_io