Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts_initrd.c Create Date:2022-07-28 13:58:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_linuxrc

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

Type:int

Parameter:

TypeParameterName
struct subprocess_info *info
struct cred *new
50  share allows a process to 'unshare' part of the process* context which was originally shared using clone. copy_** functions used by do_fork() cannot be used here directly* because they modify an inactive task_struct that is being* constructed
51  console_on_rootfs()
53  ksys_chdir("/root")
54  do_mount(".", "/", NULL, MS_MOVE, NULL)
55  ksys_chroot(".")
56  ksys_setsid()
57  Return 0