[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

simple_lock_init Kernel Service

Purpose

Initializes a simple lock.

Syntax

#include <sys/lock_def.h>
void simple_lock_init (lock_addr)
simple_lock_t lock_addr;

Parameter

lock_addr Specifies the address of the lock word.

Description

The simple_lock_init kernel service initializes a simple lock. This kernel service must be called before the simple lock is used. The simple lock must previously have been allocated with the lock_alloc kernel service.

Execution Environment

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

The simple_lock_init kernel service may be called either the process or interrupt environments.

Return Values

The simple_lock_init kernel service has no return values.

Implementation Specifics

The simple_lock_init kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

The lock_alloc kernel service, lock_free kernel service, simple_lock kernel service, simple_lock_try kernel service, simple_unlock kernel service.

Understanding Locking and Locking Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts


[ Previous | Next | Contents | Home | Search ]