Lines Matching refs:lock
108 #include <kern/lock.h>
231 * The "alias" field can be updated while holding the VM map lock
233 * updated without the VM map "exclusive" lock.
305 lock_t lock; /* uni- and smp-lock */
333 unsigned int color_rr; /* next color (not protected by a lock) */
448 lock_init(&(map)->lock, TRUE, 0, 0))
450 #define vm_map_lock(map) lock_write(&(map)->lock)
452 ((map)->timestamp++ , lock_write_done(&(map)->lock))
453 #define vm_map_lock_read(map) lock_read(&(map)->lock)
454 #define vm_map_unlock_read(map) lock_read_done(&(map)->lock)
456 ((map)->timestamp++ , lock_write_to_read(&(map)->lock))
460 #define vm_map_lock_read_to_write(map) (lock_read_to_write(&(map)->lock) != TRUE)
663 &(map)->lock, interruptible))