Deleted Added
full compact
kern_rwlock.c (167368) kern_rwlock.c (167492)
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 167368 2007-03-09 16:27:11Z jhb $");
35__FBSDID("$FreeBSD: head/sys/kern/kern_rwlock.c 167492 2007-03-12 20:10:29Z jhb $");
36
37#include "opt_ddb.h"
38
39#include <sys/param.h>
40#include <sys/ktr.h>
41#include <sys/lock.h>
42#include <sys/mutex.h>
43#include <sys/proc.h>

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

857 switch (rw->rw_lock & (RW_LOCK_READ_WAITERS | RW_LOCK_WRITE_WAITERS)) {
858 case RW_LOCK_READ_WAITERS:
859 db_printf("readers\n");
860 break;
861 case RW_LOCK_WRITE_WAITERS:
862 db_printf("writers\n");
863 break;
864 case RW_LOCK_READ_WAITERS | RW_LOCK_WRITE_WAITERS:
36
37#include "opt_ddb.h"
38
39#include <sys/param.h>
40#include <sys/ktr.h>
41#include <sys/lock.h>
42#include <sys/mutex.h>
43#include <sys/proc.h>

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

857 switch (rw->rw_lock & (RW_LOCK_READ_WAITERS | RW_LOCK_WRITE_WAITERS)) {
858 case RW_LOCK_READ_WAITERS:
859 db_printf("readers\n");
860 break;
861 case RW_LOCK_WRITE_WAITERS:
862 db_printf("writers\n");
863 break;
864 case RW_LOCK_READ_WAITERS | RW_LOCK_WRITE_WAITERS:
865 db_printf("readers and waiters\n");
865 db_printf("readers and writers\n");
866 break;
867 default:
868 db_printf("none\n");
869 break;
870 }
871}
872
873#endif
866 break;
867 default:
868 db_printf("none\n");
869 break;
870 }
871}
872
873#endif