Deleted Added
full compact
vm_object.h (127961) vm_object.h (132550)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
53 * School of Computer Science
54 * Carnegie Mellon University
55 * Pittsburgh PA 15213-3890
56 *
57 * any improvements or extensions that they make and grant Carnegie the
58 * rights to redistribute these changes.
59 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
53 * School of Computer Science
54 * Carnegie Mellon University
55 * Pittsburgh PA 15213-3890
56 *
57 * any improvements or extensions that they make and grant Carnegie the
58 * rights to redistribute these changes.
59 *
60 * $FreeBSD: head/sys/vm/vm_object.h 127961 2004-04-06 20:15:37Z imp $
60 * $FreeBSD: head/sys/vm/vm_object.h 132550 2004-07-22 19:44:49Z alc $
61 */
62
63/*
64 * Virtual memory object module definitions.
65 */
66
67#ifndef _VM_OBJECT_
68#define _VM_OBJECT_

--- 98 unchanged lines hidden (view full) ---

167extern struct vm_object kmem_object_store;
168
169#define kernel_object (&kernel_object_store)
170#define kmem_object (&kmem_object_store)
171
172#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
173#define VM_OBJECT_LOCK_ASSERT(object, type) \
174 mtx_assert(&(object)->mtx, (type))
61 */
62
63/*
64 * Virtual memory object module definitions.
65 */
66
67#ifndef _VM_OBJECT_
68#define _VM_OBJECT_

--- 98 unchanged lines hidden (view full) ---

167extern struct vm_object kmem_object_store;
168
169#define kernel_object (&kernel_object_store)
170#define kmem_object (&kmem_object_store)
171
172#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
173#define VM_OBJECT_LOCK_ASSERT(object, type) \
174 mtx_assert(&(object)->mtx, (type))
175#define VM_OBJECT_LOCK_INIT(object) mtx_init(&(object)->mtx, "vm object", \
176 NULL, MTX_DEF | MTX_DUPOK)
175#define VM_OBJECT_LOCK_INIT(object, type) \
176 mtx_init(&(object)->mtx, "vm object", \
177 (type), MTX_DEF | MTX_DUPOK)
177#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
178#define VM_OBJECT_MTX(object) (&(object)->mtx)
179#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
180#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
181
182/*
183 * The object must be locked or thread private.
184 */

--- 36 unchanged lines hidden ---
178#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
179#define VM_OBJECT_MTX(object) (&(object)->mtx)
180#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
181#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
182
183/*
184 * The object must be locked or thread private.
185 */

--- 36 unchanged lines hidden ---