sm_inter.h 798 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef LINUX_LOCKD_SM_INTER_H
  9. #define LINUX_LOCKD_SM_INTER_H
  10. #define SM_PROGRAM 100024
  11. #define SM_VERSION 1
  12. #define SM_STAT 1
  13. #define SM_MON 2
  14. #define SM_UNMON 3
  15. #define SM_UNMON_ALL 4
  16. #define SM_SIMU_CRASH 5
  17. #define SM_NOTIFY 6
  18. #define SM_MAXSTRLEN 1024
  19. /*
  20. * Arguments for all calls to statd
  21. */
  22. struct nsm_args {
  23. u32 addr; /* remote address */
  24. u32 prog; /* RPC callback info */
  25. u32 vers;
  26. u32 proc;
  27. };
  28. /*
  29. * Result returned by statd
  30. */
  31. struct nsm_res {
  32. u32 status;
  33. u32 state;
  34. };
  35. int nsm_monitor(struct nlm_host *);
  36. int nsm_unmonitor(struct nlm_host *);
  37. extern u32 nsm_local_state;
  38. #endif /* LINUX_LOCKD_SM_INTER_H */