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

Technical Reference: Kernel and Subsystems, 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.

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 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts

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