Lines Matching +full:lock +full:- +full:offset
1 /*-
2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU)
8 * The Mach Operating System project at Carnegie-Mellon University.
35 * Copyright (c) 1987, 1990 Carnegie-Mellon University.
55 * Pittsburgh PA 15213-3890
86 * (o) per-object lock
97 struct rwlock lock; member
117 vm_ooffset_t backing_object_offset;/* Offset in backing object */
125 * vnp_size - current size of file
135 * devp_pglist - list of allocated pages
146 * sgp_pglist - list of allocated pages
155 * swp_priv - pager-private.
156 * swp_blks - pc-trie of the allocated swap blocks.
157 * writemappings - count of bytes mapped for write
192 #define OBJ_SIZEVNLOCK 0x00000040 /* lock vnode to check obj size */
201 #define OBJ_ONEMAPPING 0x00002000 /* One USE (a single, non-forked)
211 * IDX_TO_OFF() converts an index into an offset.
212 * OFF_TO_IDX() converts an offset into an index.
214 * maximum unsigned offset.
236 extern struct mtx vm_object_list_mtx; /* lock for object list and count */
245 rw_assert(&(object)->lock, RA_LOCKED)
247 rw_assert(&(object)->lock, RA_RLOCKED)
249 rw_assert(&(object)->lock, RA_WLOCKED)
251 rw_assert(&(object)->lock, RA_UNLOCKED)
253 rw_downgrade(&(object)->lock)
255 rw_rlock(&(object)->lock)
257 rw_runlock(&(object)->lock)
259 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
261 rw_try_rlock(&(object)->lock)
263 rw_try_wlock(&(object)->lock)
265 rw_try_upgrade(&(object)->lock)
267 rw_wlock(&(object)->lock)
269 rw_wowned(&(object)->lock)
271 rw_wunlock(&(object)->lock)
273 rw_unlock(&(object)->lock)
275 lock_class_rw.lc_unlock(&(object)->lock.lock_object)
277 lock_class_rw.lc_lock(&(object)->lock.lock_object, (state))
280 KASSERT(blockcount_read(&(object)->paging_in_progress) != 0, \
283 KASSERT((object)->reference_count != 0, \
295 object->flags |= bits; in vm_object_set_flag()
300 * of physical memory reservations for anonymous objects and larger-than-
301 * superpage-sized named objects and (2) determines the first page offset
316 if ((object->flags & OBJ_COLORED) == 0) { in vm_object_color()
317 object->pg_color = color; in vm_object_color()
327 (object->flags & (OBJ_COLORED | OBJ_FICTITIOUS)) == OBJ_COLORED) { in vm_object_reserv()
348 return (blockcount_read(&object->busy) != 0); in vm_object_busied()
389 void vm_object_unwire(vm_object_t object, vm_ooffset_t offset,