[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

lock_islocked Kernel Service

Purpose

Tests whether a complex lock is locked.

Syntax

#include <sys/lock_def.h>


int lock_islocked ( lock_addr)
complex_lock_t lock_addr;

Parameter

lock_addr Specifies the address of the lock word to test.

Description

The lock_islocked kernel service determines whether the specified complex lock is free, or is locked in either shared-read or exclusive-write mode.

Execution Environment

The lock_islocked kernel service can be called from the process environment only.

Return Values

TRUE Indicates that the lock was locked.
FALSE Indicates that the lock was free.

Related Information

The lock_init kernel service.

Understanding Locking and Locking Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]