DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

os_mutex_alloc(D3psm)


os_mutex_alloc -- allocate and initialize a simple mutex exclusion lock

Synopsis

   ms_lockp_t os_mutex_alloc(void)

Description

os_mutex_alloc allocates and initializes a simple mutex exclusion lock ms_lockp_t.

The lock can be acquired using os_mutex_lock(D3psm) and released using os_mutex_unlock(D3psm).

It can be freed using os_mutex_free(D3psm).

os_mutex_lock may be called from pfxinitpsm or from the following entry points: MSOP_INIT_CPU(D2psm), MSOP_START_CPU(D2psm), MSOP_INTR_ATTACH(D2psm) and MSOP_INTR_DETACH(D2psm).

Arguments

None.

Return values

Returns a ms_lockp_t pointer to the lock structure.

Usage

Hardware applicability

All.

Version applicability

psm: 2

References

MSOP_INIT_CPU(D2psm), MSOP_START_CPU(D2psm), MSOP_INTR_ATTACH(D2psm), MSOP_INTR_DETACH(D2psm), os_mutex_lock(D3psm), os_mutex_unlock(D3psm), os_mutex_free(D3psm)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - 19 June 2005