Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\umh.c Create Date:2022-07-28 09:22:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:umh_pipe_setup

Proto:static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)

Type:int

Parameter:

TypeParameterName
struct subprocess_info *info
struct cred *new
437  umh_info = data
443  err = create_pipe_files(to_umh, 0)
444  If err Then Return err
446  err = replace_fd(0, to_umh[0], 0)
447  fput(to_umh[0])
448  If err < 0 Then
449  fput(to_umh[1])
450  Return err
454  err = create_pipe_files(from_umh, 0)
455  If err Then
456  fput(to_umh[1])
457  replace_fd(0, NULL, 0)
458  Return err
460  err = replace_fd(1, from_umh[1], 0)
461  fput(from_umh[1])
462  If err < 0 Then
463  fput(to_umh[1])
464  replace_fd(0, NULL, 0)
465  fput(from_umh[0])
466  Return err
469  pipe_to_umh = to_umh[1]
470  pipe_from_umh = from_umh[0]
471  Return 0