source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/lockd/sm_inter.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 901 bytes
Line 
1/*
2 * linux/include/linux/lockd/sm_inter.h
3 *
4 * Declarations for the kernel statd client.
5 *
6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
7 */
8
9#ifndef LINUX_LOCKD_SM_INTER_H
10#define LINUX_LOCKD_SM_INTER_H
11
12#include <asm/types.h>
13
14#define SM_PROGRAM      100024
15#define SM_VERSION      1
16#define SM_STAT         1
17#define SM_MON          2
18#define SM_UNMON        3
19#define SM_UNMON_ALL    4
20#define SM_SIMU_CRASH   5
21#define SM_NOTIFY       6
22
23#define SM_MAXSTRLEN    1024
24
25/*
26 * Arguments for all calls to statd
27 */
28struct nsm_args {
29        __u32           addr;           /* remote address */
30        __u32           prog;           /* RPC callback info */
31        __u32           vers;
32        __u32           proc;
33        __u32           proto;          /* protocol (udp/tcp) plus server/client flag */
34};
35
36/*
37 * Result returned by statd
38 */
39struct nsm_res {
40        __u32           status;
41        __u32           state;
42};
43
44int             nsm_monitor(struct nlm_host *);
45int             nsm_unmonitor(struct nlm_host *);
46extern __u32    nsm_local_state;
47
48#endif /* LINUX_LOCKD_SM_INTER_H */
Note: See TracBrowser for help on using the repository browser.