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:ksys_dup

Proto:int ksys_dup(unsigned int fildes)

Type:int

Parameter:

TypeParameterName
unsigned intfildes
965  ret = -EBADF
966  file = fget_raw(fildes)
968  If file Then
969  ret = get_unused_fd_flags(0)
970  If ret >= 0 Then fd_install(ret, file)
972  Else fput(file)
975  Return ret
Caller
NameDescribe
console_on_rootfs
SYSCALL_DEFINE1