函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Lightweight 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

函数原型:static unsigned long __fget_light(unsigned int fd, fmode_t mask)

返回类型:unsigned long

参数:

类型参数名称
unsigned intfd
fmode_tmask
767  files等于files
770  如果atomic_read( & ad mostly part)恒等于1则
771  file等于The caller must ensure that fd table isn't shared or hold rcu or file lock
772  如果非file此条件成立可能性小(为编译器优化)(f_mode & mask)则返回:0
774  返回:file
775  否则
776  file等于__fget(fd, mask, 1)
777  如果非file则返回:0
779  返回:FDPUT_FPUT按位或file
调用者
名称描述
__fdget
__fdget_raw