函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fdput

函数原型:static inline void fdput(struct fd fd)

返回类型:void

参数:

类型参数名称
struct fdfd
43  如果flags按位与FDPUT_FPUTfput(file)
调用者
名称描述
pidfd_get_pid
SYSCALL_DEFINE4sys_pidfd_send_signal - Signal a process through a pidfd*@pidfd: file descriptor of the process*@sig: signal to send*@info: signal info*@flags: future flags* The syscall currently only signals via PIDTYPE_PID which covers* kill(,
prctl_set_mm_exe_file
cgroupstats_user_cmd
__bpf_map_get error is returned, fd is released.* On success caller should complete fd access with matching fdput()
bpf_map_get_with_uref
map_lookup_elem
map_update_elem
map_delete_elem
map_get_next_key
map_lookup_and_delete_elem
map_freeze
____bpf_prog_get
__bpf_prog_get
bpf_obj_get_info_by_fd
replace_map_fd_with_map_ptrlook for pseudo eBPF instructions that access map FDs and* replace them with actual map pointers
bpf_map_meta_alloc
bpf_map_fd_get_ptr
btf_get_by_fd
perf_fget_light
_perf_ioctl
ksys_fadvise64_64
ksys_readahead
memcg_write_event_controlDO NOT USE IN NEW FILES.* Parse input and register new cgroup event handler.* Input must be in format ' '.* Interpretation of args is defined by control file implementation.
do_mq_timedsend
do_mq_timedreceive
do_mq_notifyNotes: the case when user wants us to deregister (with NULL as pointer)* and he isn't currently owner of notification, will be silently discarded.* It isn't explicitly defined in the POSIX.
do_mq_getsetattr
do_sys_ftruncate
ksys_fallocate
SYSCALL_DEFINE1
ksys_fchmod
ksys_fchown
ksys_pread64
ksys_pwrite64
do_preadv
do_pwritev
do_compat_preadv64
do_compat_pwritev64
do_sendfile
SYSCALL_DEFINE6
vfs_dedupe_file_range
vfs_statx_fdvfs_statx_fd - Get the enhanced basic attributes by file descriptor*@fd: The file descriptor referring to the file of interest*@stat: The result structure to fill in
kernel_read_file_from_fd
path_initmust be paired with terminate_walk()
SYSCALL_DEFINE3
SYSCALL_DEFINE3
do_compat_fcntl64
ioctl_file_clone
ksys_ioctl
do_select
do_pollfdFish for pollable events on the pollfd->fd file descriptor
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.
SYSCALL_DEFINE5
SYSCALL_DEFINE4
SYSCALL_DEFINE3
SYSCALL_DEFINE2
vmsplice_type
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4
SYSCALL_DEFINE6
SYSCALL_DEFINE4
SYSCALL_DEFINE1sync a single super
do_fsync
ksys_sync_file_rangeksys_sync_file_range() permits finely controlled syncing over a segment of* a file in the range offset
do_utimesdo_utimes - change times on filename or file descriptor*@dfd: open file descriptor, -1 or AT_FDCWD*@filename: path name or NULL*@times: new times or NULL*@flags: zero or more flags (only AT_SYMLINK_NOFOLLOW for the moment)* If filename is NULL and dfd
fd_statfs
SYSCALL_DEFINE3
SYSCALL_DEFINE2
fanotify_find_path
do_fanotify_mark
SYSCALL_DEFINE4The following function implements the controller interface for* the eventpoll file that enables the insertion/removal/change of* file descriptors inside the interest set.
do_epoll_waitImplement the event wait interface for the eventpoll file. It is the kernel* part of the user space epoll_wait(2).
do_signalfd4
timerfd_fget
do_timerfd_settime
do_timerfd_gettime
eventfd_ctx_fdgetventfd_ctx_fdget - Acquires a reference to the internal eventfd context.*@fd: [in] Eventfd file descriptor.* Returns a pointer to the internal eventfd context, otherwise the error* pointers returned by the following functions:* eventfd_fget
SYSCALL_DEFINE6
SYSCALL_DEFINE4
SYSCALL_DEFINE2sys_flock: - flock() system call.*@fd: the file descriptor to lock.*@cmd: the type of lock to apply.* Apply a %FL_FLOCK style lock to an open file descriptor.* The @cmd can be one of:* - %LOCK_SH -- a shared lock.* - %LOCK_EX -- an exclusive lock.
COMPAT_SYSCALL_DEFINE3
get_vfsmount_from_fd
fdput_pos