Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_file

Proto:static inline struct file *get_file(struct file *f)

Type:struct file

Parameter:

TypeParameterName
struct file *f
985  atomic_long_inc( & f_count)
986  Return f
Caller
NameDescribe
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