Function Report

Linux Kernel (v4.4)

Source File:fs\file_table.c Create Date:2016-01-14 14:17:15
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:fput

Function:void fput(struct file *file)

Return Type:void

Parameter:

Type Parameter NameRemarks
struct file * file

Function description:

266  If atomic_long_dec_and_test( &f_count) then
267  *task = current process
271  If ! ask the@task to execute@work->func() then Returning
280  If add a new entry then put work task in global workqueue after delay
Caller
Function NameFunction description
fput_light
fdput
set_mm_exe_file change a reference to the mm's executable file
prctl_set_mm_exe_file
SYSC_setns
get_clock_desc
put_clock_desc
audit_log_d_path_exe
SYSC_perf_event_open
shmem_zero_setup setup a shared anonymous mapping
__put_nommu_regionrelease a reference to a region- the caller must hold the region semaphore for writing, which this releases- the region may not have been added to the tree yet, in which case vm_top will equal vm_start
delete_vmadestroy a VMA record
do_mmaphandle mapping creation for uClinux
SYSC_mmap_pgoff
remove_vmaClose a vm structure and free it, returning the next.
vma_adjustWe cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that is already present in an i_mmap tree without adjusting the tree
SYSC_mmap_pgoff
mmap_region
__split_vmabypasses sysctl_max_map_count checking. We use this on the munmap path where it doesn't make sense to fail.
SYSC_remap_file_pages
SYSC_msync
madvise_removeApplication wants to free up the pages and associated backing store. This is effectively punching a hole into the middle of a file.
shm_destroy free the struct shmid_kernel
newseg Create a new shared memory segment
SYSC_shmctl
do_shmatFix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.
flush_unauthorized_filesDerived from fs/exec.c:flush_old_files.
dentry_open
filp_close"id" is the POSIX thread ID. We use the files pointer for this..
do_open_execat
free_bprm
__do_pipe_flags
SYSC_pipe2
atomic_openAttempt to atomically look up, create and open a file from a negative dentry.
do_lastHandle the last step of open()
do_tmpfile
free_poll_entry
SYSC_dup
proc_ns_fget
copy_event_to_user
eventfd_fget Acquire a reference of an eventfd file descriptor.
put_aio_ring_file
kiocb_free
load_em86
load_misc_binarythe loader itself
load_script
load_elf_binary
load_elf_fdpic_binaryload an fdpic binary into various bits of memory
cn_print_exe_file
umh_pipe_setup helper function to customize the process used to collect the core in userspace
proc_exe_link
seq_show