sm_inter.h 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. __be32 addr; /* remote address */
  24. u32 prog; /* RPC callback info */
  25. u32 vers;
  26. u32 proc;
  27. char * mon_name;
  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 int nsm_local_state;
  39. #endif /* LINUX_LOCKD_SM_INTER_H */