1191783Srmacklem/*-
2191783Srmacklem * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved.
3191783Srmacklem * Redistribution and use in source and binary forms, with or without
4191783Srmacklem * modification, are permitted provided that the following conditions
5191783Srmacklem * are met:
6191783Srmacklem * 1. Redistributions of source code must retain the above copyright
7191783Srmacklem *    notice, this list of conditions and the following disclaimer.
8191783Srmacklem * 2. Redistributions in binary form must reproduce the above copyright
9191783Srmacklem *    notice, this list of conditions and the following disclaimer in the
10191783Srmacklem *    documentation and/or other materials provided with the distribution.
11191783Srmacklem * 3. Berkeley Software Design Inc's name may not be used to endorse or
12191783Srmacklem *    promote products derived from this software without specific prior
13191783Srmacklem *    written permission.
14191783Srmacklem *
15191783Srmacklem * THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN INC ``AS IS'' AND
16191783Srmacklem * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17191783Srmacklem * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18191783Srmacklem * ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN INC BE LIABLE
19191783Srmacklem * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20191783Srmacklem * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21191783Srmacklem * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22191783Srmacklem * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23191783Srmacklem * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24191783Srmacklem * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25191783Srmacklem * SUCH DAMAGE.
26191783Srmacklem *
27191783Srmacklem * $FreeBSD: releng/10.3/sys/fs/nfsclient/nlminfo.h 191783 2009-05-04 15:23:58Z rmacklem $
28191783Srmacklem */
29191783Srmacklem
30191783Srmacklem/*
31191783Srmacklem * Misc NLM informationi, some needed for the master lockd process, and some
32191783Srmacklem * needed by every process doing nlm based locking.
33191783Srmacklem */
34191783Srmacklemstruct  nlminfo {
35191783Srmacklem	/* these are used by any process doing nlm locking */
36191783Srmacklem        int             msg_seq;        /* sequence counter for lock requests */
37191783Srmacklem        int             retcode;        /* return code for lock requests */
38191783Srmacklem	int		set_getlk_pid;
39191783Srmacklem	int		getlk_pid;
40191783Srmacklem        struct  timeval pid_start;      /* process starting time */
41191783Srmacklem};
42