Initializes a reader-writer lock.
#include <synch.h> int rwlock_init ( rwlock_t *rwlp, int type, void *arg );
(IN) Points to the reader-writer lock to be initialized.
(IN) Specifies the type of mutex with one of the following flags:
(IN) Reserved for future use. Set to NULL
If successful, returns zero; otherwise, returns a nonzero error code:
Mutually exclusive locks are acquired by threads on behalf of the context that they might be hosting.