函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:umh_pipe_setup

函数原型:static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)

返回类型:int

参数:

类型参数名称
struct subprocess_info *info
struct cred *new
437  umh_info等于data
443  err等于create_pipe_files(to_umh, 0)
444  如果err则返回:err
446  err等于replace_fd(0, to_umh[0], 0)
447  fput(to_umh[0])
448  如果err小于0则
449  fput(to_umh[1])
450  返回:err
454  err等于create_pipe_files(from_umh, 0)
455  如果err
456  fput(to_umh[1])
457  replace_fd(0, NULL, 0)
458  返回:err
460  err等于replace_fd(1, from_umh[1], 0)
461  fput(from_umh[1])
462  如果err小于0则
463  fput(to_umh[1])
464  replace_fd(0, NULL, 0)
465  fput(from_umh[0])
466  返回:err
469  pipe_to_umh等于to_umh[1]
470  pipe_from_umh等于from_umh[0]
471  返回:0