---
name: "try_wait_for_completion"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/try_wait_for_completion"
---

# try\_wait\_for\_completion(9)

try to decrement a completion without blocking

## NAME

try\_wait\_for\_completion - try to decrement a completion without blocking

## SYNOPSIS

**bool try\_wait\_for\_completion(struct completion \*** *x***);**

## ARGUMENTS

*x*

completion structure

## RETURNS

0 if a decrement cannot be done without blocking 1 if a decrement succeeded.

If a completion is being used as a counting completion, attempt to decrement the counter without blocking. This enables us to avoid waiting if the resource the completion is protecting is not available.

## COPYRIGHT
