protocol.h 755 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * 9P Protocol Support Code
  4. *
  5. * Copyright (C) 2008 by Eric Van Hensbergen <[email protected]>
  6. *
  7. * Base on code from Anthony Liguori <[email protected]>
  8. * Copyright (C) 2008 by IBM, Corp.
  9. */
  10. size_t p9_msg_buf_size(struct p9_client *c, enum p9_msg_t type,
  11. const char *fmt, va_list ap);
  12. int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
  13. va_list ap);
  14. int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
  15. int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
  16. int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
  17. void p9pdu_reset(struct p9_fcall *pdu);
  18. size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);