函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The caller must ensure that fd table isn't shared or hold rcu or file lock

函数原型:static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd)

返回类型:struct file

参数:

类型参数名称
struct files_struct *files
unsigned intfd
84  fdt等于Dependency order vs. p above. (fdt)
86  如果fd小于max_fds
87  fd等于array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (fd, max_fds)
88  返回:Dependency order vs. p above. ( current fd array [fd])
90  返回:NULL
调用者
名称描述
__fget_lightLightweight file lookup - no refcnt increment if fd table isn't shared.* You can use this instead of fget if you satisfy all of the following* conditions:* 1) You must call fput_light before exiting the syscall and returning control* to userspace (i
fcheck_files