tracehook_report_clone

Langue: en

Autres versions - même langue

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

tracehook_report_clone - in parent, new child is about to start running

SYNOPSIS

void tracehook_report_clone(int trace, struct pt_regs * regs, unsigned long clone_flags, pid_t pid, struct task_struct * child);

ARGUMENTS

trace

return value from tracehook_prepare_clone

regs

parent's user register state

clone_flags

flags from parent's system call

pid

new child's PID in the parent's namespace

child

new child task

DESCRIPTION

Called after a child is set up, but before it has been started running. trace is the value returned by tracehook_prepare_clone. This is not a good place to block, because the child has not started yet. Suspend the child here if desired, and then block in tracehook_report_clone_complete. This must prevent the child from self-reaping if tracehook_report_clone_complete uses the child pointer; otherwise it might have died and been released by the time tracehook_report_clone_complete is called.

Called with no locks held, but the child cannot run until this returns.