函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-29 11:06:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mh_pipe_setup* helper function to customize the process used* to collect the core in userspace. Specifically* it sets up a pipe and installs it as fd 0 (stdin)* for the process. Returns 0 on success, or* PTR_ERR on failure.

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

返回类型:int

参数:

类型参数名称
struct subprocess_info *info
struct cred *new
550  cp等于data
551  err等于create_pipe_files(files, 0)
552  如果err则返回:err
555  file等于files[1]
557  err等于replace_fd(0, files[0], 0)
558  fput(files[0])
560  rlim[RLIMIT_CORE] = (struct rlimit){1, 1}
562  返回:err