sm_inter.h 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. u32 proto; /* protocol (udp/tcp) plus server/client flag */
  28. };
  29. /*
  30. * Result returned by statd
  31. */
  32. struct nsm_res {
  33. u32 status;
  34. u32 state;
  35. };
  36. int nsm_monitor(struct nlm_host *);
  37. int nsm_unmonitor(struct nlm_host *);
  38. extern u32 nsm_local_state;
  39. #endif /* LINUX_LOCKD_SM_INTER_H */