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

Technical Reference: Kernel and Subsystems, Volume 1

lock_init Kernel Service

Purpose

Initializes a complex lock.

Syntax

#include <sys/lock_def.h>


void lock_init ( lock_addr, can_sleep)
complex_lock_t lock_addr;
boolean_t can_sleep;

Parameters

lock_addr Specifies the address of the lock word.
can_sleep This parameter is ignored.

Description

The lock_init kernel service initializes the specified complex lock. This kernel service must be called for each complex lock before the lock is used. The complex lock must previously have been allocated with the lock_alloc kernel service. The can_sleep parameter is included for compatibility with OSF/1 1.1, but is ignored. Using a value of TRUE for this parameter will maintain OSF/1 1.1 semantics.

Execution Environment

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

Return Values

The lock_init kernel service has no return values.

Related Information

The lock_alloc kernel service, lock_free 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 ]