Deleted Added
full compact
sx.h (219819) sx.h (227588)
1/*-
2 * Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
3 * Copyright (c) 2001 Jason Evans <jasone@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 * DAMAGE.
28 *
1/*-
2 * Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
3 * Copyright (c) 2001 Jason Evans <jasone@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 * DAMAGE.
28 *
29 * $FreeBSD: head/sys/sys/sx.h 219819 2011-03-21 09:40:01Z jeff $
29 * $FreeBSD: head/sys/sys/sx.h 227588 2011-11-16 21:51:17Z pjd $
30 */
31
32#ifndef _SYS_SX_H_
33#define _SYS_SX_H_
34
35#include <sys/_lock.h>
36#include <sys/_sx.h>
37

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

104void _sx_downgrade(struct sx *sx, const char *file, int line);
105int _sx_xlock_hard(struct sx *sx, uintptr_t tid, int opts,
106 const char *file, int line);
107int _sx_slock_hard(struct sx *sx, int opts, const char *file, int line);
108void _sx_xunlock_hard(struct sx *sx, uintptr_t tid, const char *file, int
109 line);
110void _sx_sunlock_hard(struct sx *sx, const char *file, int line);
111#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
30 */
31
32#ifndef _SYS_SX_H_
33#define _SYS_SX_H_
34
35#include <sys/_lock.h>
36#include <sys/_sx.h>
37

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

104void _sx_downgrade(struct sx *sx, const char *file, int line);
105int _sx_xlock_hard(struct sx *sx, uintptr_t tid, int opts,
106 const char *file, int line);
107int _sx_slock_hard(struct sx *sx, int opts, const char *file, int line);
108void _sx_xunlock_hard(struct sx *sx, uintptr_t tid, const char *file, int
109 line);
110void _sx_sunlock_hard(struct sx *sx, const char *file, int line);
111#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
112void _sx_assert(struct sx *sx, int what, const char *file, int line);
112void _sx_assert(const struct sx *sx, int what, const char *file, int line);
113#endif
114#ifdef DDB
115int sx_chain(struct thread *td, struct thread **ownerp);
116#endif
117
118struct sx_args {
119 struct sx *sa_sx;
120 const char *sa_desc;

--- 178 unchanged lines hidden ---
113#endif
114#ifdef DDB
115int sx_chain(struct thread *td, struct thread **ownerp);
116#endif
117
118struct sx_args {
119 struct sx *sa_sx;
120 const char *sa_desc;

--- 178 unchanged lines hidden ---