函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\file.c Create Date:2022-07-29 10:38:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__put_unused_fd

函数原型:static void __put_unused_fd(struct files_struct *files, unsigned int fd)

返回类型:void

参数:

类型参数名称
struct files_struct *files
unsigned intfd
551  fdt等于files_fdtable(files)
552  __clear_open_fd(fd, fdt)
553  如果fd小于next_fdnext_fd等于fd
调用者
名称描述
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