FreeBSD ZFS
The Zettabyte File System
Data Fields

zfs_dirlock Struct Reference

Directory Entry Locks. More...

#include <zfs_znode.h>

Collaboration diagram for zfs_dirlock:
Collaboration graph
[legend]

Data Fields

char * dl_name
 directory entry being locked
uint32_t dl_sharecnt
 0 if exclusive, > 0 if shared
uint8_t dl_namelock
 1 if z_name_lock is NOT held
uint16_t dl_namesize
 set if dl_name was allocated
kcondvar_t dl_cv
 wait for entry to be unlocked
struct znodedl_dzp
 directory znode
struct zfs_dirlockdl_next
 next in z_dirlocks list

Detailed Description

Directory Entry Locks.

Directory entry locks control access to directory entries. They are used to protect creates, deletes, and renames. Each directory znode has a mutex and a list of locked names.

Definition at line 181 of file zfs_znode.h.


Field Documentation

kcondvar_t zfs_dirlock::dl_cv

wait for entry to be unlocked

Definition at line 186 of file zfs_znode.h.

directory znode

Definition at line 187 of file zfs_znode.h.

directory entry being locked

Definition at line 182 of file zfs_znode.h.

1 if z_name_lock is NOT held

Definition at line 184 of file zfs_znode.h.

set if dl_name was allocated

Definition at line 185 of file zfs_znode.h.

next in z_dirlocks list

Definition at line 188 of file zfs_znode.h.

0 if exclusive, > 0 if shared

Definition at line 183 of file zfs_znode.h.


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