Deleted Added
full compact
lockf.h (76235) lockf.h (92719)
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 * Scooter Morris at Genentech Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)lockf.h 8.1 (Berkeley) 6/11/93
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 * Scooter Morris at Genentech Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)lockf.h 8.1 (Berkeley) 6/11/93
37 * $FreeBSD: head/sys/sys/lockf.h 76235 2001-05-03 08:57:26Z bp $
37 * $FreeBSD: head/sys/sys/lockf.h 92719 2002-03-19 20:18:42Z alfred $
38 */
39
40#ifndef _SYS_LOCKF_H_
41#define _SYS_LOCKF_H_
42
43#include <sys/queue.h>
44
45struct vop_advlock_args;

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

67 struct lockf *lf_next; /* Pointer to the next lock on this inode */
68 struct locklist lf_blkhd; /* List of requests blocked on this lock */
69 TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
70};
71
72/* Maximum length of sleep chains to traverse to try and detect deadlock. */
73#define MAXDEPTH 50
74
38 */
39
40#ifndef _SYS_LOCKF_H_
41#define _SYS_LOCKF_H_
42
43#include <sys/queue.h>
44
45struct vop_advlock_args;

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

67 struct lockf *lf_next; /* Pointer to the next lock on this inode */
68 struct locklist lf_blkhd; /* List of requests blocked on this lock */
69 TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
70};
71
72/* Maximum length of sleep chains to traverse to try and detect deadlock. */
73#define MAXDEPTH 50
74
75int lf_advlock __P((struct vop_advlock_args *, struct lockf **, u_quad_t));
75int lf_advlock(struct vop_advlock_args *, struct lockf **, u_quad_t);
76
77#ifdef LOCKF_DEBUG
76
77#ifdef LOCKF_DEBUG
78void lf_print __P((char *, struct lockf *));
79void lf_printlist __P((char *, struct lockf *));
78void lf_print(char *, struct lockf *);
79void lf_printlist(char *, struct lockf *);
80#endif
81
82#endif /* !_SYS_LOCKF_H_ */
80#endif
81
82#endif /* !_SYS_LOCKF_H_ */