mux.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * linux/fs/9p/mux.h
  3. *
  4. * Multiplexer Definitions
  5. *
  6. * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to:
  20. * Free Software Foundation
  21. * 51 Franklin Street, Fifth Floor
  22. * Boston, MA 02111-1301 USA
  23. *
  24. */
  25. /* structure to manage each RPC transaction */
  26. struct v9fs_rpcreq {
  27. struct v9fs_fcall *tcall;
  28. struct v9fs_fcall *rcall;
  29. int err; /* error code if response failed */
  30. /* XXX - could we put scatter/gather buffers here? */
  31. struct list_head next;
  32. };
  33. int v9fs_mux_init(struct v9fs_session_info *v9ses, const char *dev_name);
  34. long v9fs_mux_rpc(struct v9fs_session_info *v9ses,
  35. struct v9fs_fcall *tcall, struct v9fs_fcall **rcall);
  36. void v9fs_mux_cancel_requests(struct v9fs_session_info *v9ses, int err);