Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__do_pipe_flags

Proto:static int __do_pipe_flags(int *fd, struct file **files, int flags)

Type:int

Parameter:

TypeParameterName
int *fd
struct file **files
intflags
919  If flags & ~( O_CLOEXEC | O_NONBLOCK | O_DIRECT) Then Return -EINVAL
922  error = create_pipe_files(files, flags)
923  If error Then Return error
926  error = get_unused_fd_flags(flags)
927  If error < 0 Then Go to err_read_pipe
929  fdr = error
931  error = get_unused_fd_flags(flags)
932  If error < 0 Then Go to err_fdr
934  fdw = error
936  audit_fd_pair(fdr, fdw)
937  fd[0] = fdr
938  fd[1] = fdw
939  Return 0
941  err_fdr :
942  put_unused_fd(fdr)
943  err_read_pipe :
944  fput(files[0])
945  fput(files[1])
946  Return error
Caller
NameDescribe
do_pipe_flags
do_pipe2sys_pipe() is the normal C calling standard for creating* a pipe. It's not the way Unix traditionally does this, though.