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

Technical Reference: Kernel and Subsystems, Volume 1

lock_clear_recursive Kernel Service

Purpose

Prevents a complex lock from being acquired recursively.

Syntax

#include <sys/lock_def.h>


void lock_clear_recursive ( lock_addr)
complex_lock_t lock_addr;

Parameter

lock_addr Specifies the address of the lock word which is no longer to be acquired recursively.

Description

The lock_clear_recursive kernel service prevents the specified complex lock from being acquired recursively. The lock must have been made recursive with the lock_set_recursive kernel service. The calling thread must hold the specified complex lock in write-exclusive mode.

Execution Environment

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

Return Values

The lock_clear_recursive kernel service has no return values.

Related Information

The lock_init kernel service, lock_done kernel service, lock_read kernel service, lock_read_to_write kernel service, lock_write kernel service, lock_set_recursive 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 ]