---
name: "task_set_jobctl_pending"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/task_set_jobctl_pending"
---

# task\_set\_jobctl\_pending(9)

set jobctl pending bits

## NAME

task\_set\_jobctl\_pending - set jobctl pending bits

## SYNOPSIS

**bool task\_set\_jobctl\_pending(struct task\_struct \*** *task***, unsigned int** *mask***);**

## ARGUMENTS

*task*

target task

*mask*

pending bits to set

## DESCRIPTION

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.

## COPYRIGHT
