FreeBSD ZFS
The Zettabyte File System
Data Fields

rrwlock Struct Reference

A reader-writer lock implementation that allows re-entrant reads, but still gives writers priority on "new" reads. More...

#include <rrwlock.h>

Collaboration diagram for rrwlock:
Collaboration graph
[legend]

Data Fields

kmutex_t rr_lock
kcondvar_t rr_cv
kthread_t * rr_writer
refcount_t rr_anon_rcount
refcount_t rr_linked_rcount
boolean_t rr_writer_wanted

Detailed Description

A reader-writer lock implementation that allows re-entrant reads, but still gives writers priority on "new" reads.

See rrwlock.c for more details about the implementation.

Fields of the rrwlock_t structure:

Definition at line 52 of file rrwlock.h.


Field Documentation

Definition at line 56 of file rrwlock.h.

kcondvar_t rrwlock::rr_cv

Definition at line 54 of file rrwlock.h.

Definition at line 57 of file rrwlock.h.

kmutex_t rrwlock::rr_lock

Definition at line 53 of file rrwlock.h.

kthread_t* rrwlock::rr_writer

Definition at line 55 of file rrwlock.h.

Definition at line 58 of file rrwlock.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines