xref: /openbmc/linux/net/9p/protocol.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
11f327613SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2ace51c4dSEric Van Hensbergen /*
3ace51c4dSEric Van Hensbergen  * 9P Protocol Support Code
4ace51c4dSEric Van Hensbergen  *
5ace51c4dSEric Van Hensbergen  *  Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com>
6ace51c4dSEric Van Hensbergen  *
7ace51c4dSEric Van Hensbergen  *  Base on code from Anthony Liguori <aliguori@us.ibm.com>
8ace51c4dSEric Van Hensbergen  *  Copyright (C) 2008 by IBM, Corp.
9ace51c4dSEric Van Hensbergen  */
10ace51c4dSEric Van Hensbergen 
11*1effdbf9SChristian Schoenebeck size_t p9_msg_buf_size(struct p9_client *c, enum p9_msg_t type,
12*1effdbf9SChristian Schoenebeck 			const char *fmt, va_list ap);
13342fee1dSSripathi Kodi int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
14342fee1dSSripathi Kodi 		  va_list ap);
15342fee1dSSripathi Kodi int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
1651a87c55SEric Van Hensbergen int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
17348b5901SAneesh Kumar K.V int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
1851a87c55SEric Van Hensbergen void p9pdu_reset(struct p9_fcall *pdu);
19abfa034eSAneesh Kumar K.V size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);
20