Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

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

Type:int

Parameter:

TypeParameterName
struct subprocess_info *info
struct cred *new
550  cp = data
551  err = create_pipe_files(files, 0)
552  If err Then Return 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  Return err