svc_xprt.h 720 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * linux/include/linux/sunrpc/svc_xprt.h
  3. *
  4. * RPC server transport I/O
  5. */
  6. #ifndef SUNRPC_SVC_XPRT_H
  7. #define SUNRPC_SVC_XPRT_H
  8. #include <linux/sunrpc/svc.h>
  9. struct svc_xprt_ops {
  10. int (*xpo_recvfrom)(struct svc_rqst *);
  11. int (*xpo_sendto)(struct svc_rqst *);
  12. };
  13. struct svc_xprt_class {
  14. const char *xcl_name;
  15. struct module *xcl_owner;
  16. struct svc_xprt_ops *xcl_ops;
  17. struct list_head xcl_list;
  18. u32 xcl_max_payload;
  19. };
  20. struct svc_xprt {
  21. struct svc_xprt_class *xpt_class;
  22. struct svc_xprt_ops *xpt_ops;
  23. };
  24. int svc_reg_xprt_class(struct svc_xprt_class *);
  25. void svc_unreg_xprt_class(struct svc_xprt_class *);
  26. void svc_xprt_init(struct svc_xprt_class *, struct svc_xprt *);
  27. #endif /* SUNRPC_SVC_XPRT_H */