---
name: "console_trylock"
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/console_trylock"
---

# console\_trylock(9)

try to lock the console system for exclusive use.

## NAME

console\_trylock - try to lock the console system for exclusive use.

## SYNOPSIS

**int console\_trylock(***void***);**

## ARGUMENTS

*void*

no arguments

## DESCRIPTION

Tried to acquire a lock which guarantees that the caller has exclusive access to the console system and the console\_drivers list.

returns 1 on success, and 0 on failure to acquire the lock.

## COPYRIGHT
