Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/_lock.h
| Show All 27 Lines | |||||
| * SUCH DAMAGE. | * SUCH DAMAGE. | ||||
| */ | */ | ||||
| #ifndef _SYS__LOCK_H_ | #ifndef _SYS__LOCK_H_ | ||||
| #define _SYS__LOCK_H_ | #define _SYS__LOCK_H_ | ||||
| struct lock_object { | struct lock_object { | ||||
| const char *lo_name; /* Individual lock name. */ | const char *lo_name; /* Individual lock name. */ | ||||
| u_int lo_flags; | unsigned int lo_flags; | ||||
| u_int lo_data; /* General class specific data. */ | unsigned int lo_data; /* General class specific data. */ | ||||
| struct witness *lo_witness; /* Data for witness. */ | struct witness *lo_witness; /* Data for witness. */ | ||||
| }; | }; | ||||
| #ifdef _KERNEL | #ifdef _KERNEL | ||||
| /* | /* | ||||
| * If any of WITNESS, INVARIANTS, or KTR_LOCK KTR tracing has been enabled, | * If any of WITNESS, INVARIANTS, or KTR_LOCK KTR tracing has been enabled, | ||||
| * then turn on LOCK_DEBUG. When this option is on, extra debugging | * then turn on LOCK_DEBUG. When this option is on, extra debugging | ||||
| * facilities such as tracking the file and line number of lock operations | * facilities such as tracking the file and line number of lock operations | ||||
| Show All 30 Lines | |||||