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

Item Description
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.