Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:f_dupfd

Proto:int f_dupfd(unsigned int from, struct file *file, unsigned flags)

Type:int

Parameter:

TypeParameterName
unsigned intfrom
struct file *file
unsignedflags
986  If from >= rlimit(RLIMIT_NOFILE) Then Return -EINVAL
988  err = alloc_fd(from, flags)
989  If err >= 0 Then
990  get_file(file)
991  fd_install(err, file)
993  Return err
Caller
NameDescribe
do_fcntl