Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\file.c Create Date:2022-07-28 20:08:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__put_unused_fd

Proto:static void __put_unused_fd(struct files_struct *files, unsigned int fd)

Type:void

Parameter:

TypeParameterName
struct files_struct *files
unsigned intfd
551  fdt = files_fdtable(files)
552  __clear_open_fd(fd, fdt)
553  If fd < next_fd Then next_fd = fd
Caller
NameDescribe
put_unused_fd
__close_fdThe same warnings as for __alloc_fd()/__fd_install() apply here...
__close_fd_get_filevariant of __close_fd that gets a ref on the file for later fput
do_close_on_exec