blob: 6835f91cfda599ac32702e94462d1c3a68177d1d [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * net/9p/protocol.h
4 *
5 * 9P Protocol Support Code
6 *
7 * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com>
8 *
9 * Base on code from Anthony Liguori <aliguori@us.ibm.com>
10 * Copyright (C) 2008 by IBM, Corp.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011 */
12
13int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
14 va_list ap);
15int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
16int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
17int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
18void p9pdu_reset(struct p9_fcall *pdu);
19size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);