table of contents
TRACEHOOK_REPORT_CLO(9) | Kernel Internals | TRACEHOOK_REPORT_CLO(9) |
NAME¶
tracehook_report_clone_complete - new child is running
SYNOPSIS¶
void tracehook_report_clone_complete(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
child task, already running
DESCRIPTION¶
This is called just after the child has started running. This is just before the clone/fork syscall returns, or blocks for vfork child completion if clone_flags has the CLONE_VFORK bit set. The child pointer may be invalid if a self-reaping child died and tracehook_report_clone took no action to prevent it from self-reaping.
Called with no locks held.
May 2024 | Kernel Hackers Manual 2.6. |