|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
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 | */ |
|---|
| 28 | struct 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 | */ |
|---|
| 39 | struct nsm_res { |
|---|
| 40 | __u32 status; |
|---|
| 41 | __u32 state; |
|---|
| 42 | }; |
|---|
| 43 | |
|---|
| 44 | int nsm_monitor(struct nlm_host *); |
|---|
| 45 | int nsm_unmonitor(struct nlm_host *); |
|---|
| 46 | extern __u32 nsm_local_state; |
|---|
| 47 | |
|---|
| 48 | #endif /* LINUX_LOCKD_SM_INTER_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.