task_set_jobctl_pending(9)

task_set_jobctl_pending9

Set jobctl pending bits

Usage

bool task_set_jobctl_pending(struct task_struct * task, unsigned int mask);

Arguments

task

target task

mask

pending bits to set

Overview

Clear mask from task->jobctl. mask must be subset of JOBCTL_PENDING_MASK | JOBCTL_STOP_CONSUME | JOBCTL_STOP_SIGMASK | JOBCTL_TRAPPING. If stop signo is being set, the existing signo is cleared. If task is already being killed or exiting, this function becomes noop.

Context

Must be called with task->sighand->siglock held.

Returns

true if mask is set, false if made noop because task was dying.

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.