initnsema man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



initnsema(D3X)							initnsema(D3X)

NAME
     initnsema - initialize a synchronizing semaphore to a given value

SYNOPSIS
     #include "sys/types.h"
     #include "sys/sema.h"

     initnsema(sema_t *semap, int val, char *name);

DESCRIPTION
     initnsema initializes an IRIX synchronizing semaphore (a structure of
     type sema_t). Use synchronizing semaphores to synchronize multiple
     processes. You must allocate a semaphore before you can use it in a
     semaphore operation, such as psema or vsema. You can declare semaphores
     in line by using the sema_t type, or you can allocate them dynamically by
     using the kernel memory allocator, kern_malloc(D3X). In the case of an
     already allocated semaphore struct, initsema fills it.

     The val parameter expects the initial value to which you want to set the
     semaphore. The name parameter of initnsema expects a pointer to an eight
     character string that contains the name you want to assign to the
     semaphore. This name may be used by debugging utilities.

   Return Values
     None

   See Also
     initnsema_mutex(D3X), cpsema(D3X), cvsema(D3X), psema(D3X), vsema(D3X),
     sleep(D3), vpsema(D3X), SLEEP_ALLOC(D3), SLEEP_DEALLOC(D3)

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net