kern_rwlock.c (182914) | kern_rwlock.c (185778) |
---|---|
1/*- 2 * Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30/* 31 * Machine independent bits of reader/writer lock implementation. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30/* 31 * Machine independent bits of reader/writer lock implementation. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/kern/kern_rwlock.c 182914 2008-09-10 19:13:30Z jhb $"); | 35__FBSDID("$FreeBSD: head/sys/kern/kern_rwlock.c 185778 2008-12-08 21:46:55Z kmacy $"); |
36 37#include "opt_ddb.h" 38#include "opt_no_adaptive_rwlocks.h" 39 40#include <sys/param.h> 41#include <sys/ktr.h> 42#include <sys/kernel.h> 43#include <sys/lock.h> --- 142 unchanged lines hidden (view full) --- 186void 187rw_sysinit(void *arg) 188{ 189 struct rw_args *args = arg; 190 191 rw_init(args->ra_rw, args->ra_desc); 192} 193 | 36 37#include "opt_ddb.h" 38#include "opt_no_adaptive_rwlocks.h" 39 40#include <sys/param.h> 41#include <sys/ktr.h> 42#include <sys/kernel.h> 43#include <sys/lock.h> --- 142 unchanged lines hidden (view full) --- 186void 187rw_sysinit(void *arg) 188{ 189 struct rw_args *args = arg; 190 191 rw_init(args->ra_rw, args->ra_desc); 192} 193 |
194void 195rw_sysinit_flags(void *arg) 196{ 197 struct rw_args_flags *args = arg; 198 199 rw_init_flags(args->ra_rw, args->ra_desc, args->ra_flags); 200} 201 |
|
194int 195rw_wowned(struct rwlock *rw) 196{ 197 198 return (rw_wowner(rw) == curthread); 199} 200 201void --- 829 unchanged lines hidden --- | 202int 203rw_wowned(struct rwlock *rw) 204{ 205 206 return (rw_wowner(rw) == curthread); 207} 208 209void --- 829 unchanged lines hidden --- |