^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * net/9p/protocol.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * 9P Protocol Support Code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Base on code from Anthony Liguori <aliguori@us.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * Copyright (C) 2008 by IBM, Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) va_list ap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void p9pdu_reset(struct p9_fcall *pdu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);