do_notify_parent_cldstop(9)

do_notify_parent_cldstop9

Notify parent of stopped/continued state change

Usage

void do_notify_parent_cldstop(struct task_struct * tsk, bool for_ptracer, int why);

Arguments

tsk

task reporting the state change

for_ptracer

the notification is for ptracer

why

CLD_{CONTINUED|STOPPED|TRAPPED} to report

Overview

Notify tsk's parent that the stopped/continued state has changed. If for_ptracer is false, tsk's group leader notifies to its real parent. If true, tsk reports to tsk->parent which should be the ptracer.

Context

Must be called with tasklist_lock at least read locked.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.