blob: 6d719c30331ac9133bd4df7af4c1f00d2012e369 [file] [log] [blame]
Thomas Gleixner1f327612019-05-28 09:57:16 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Eric Van Hensbergenace51c42008-10-13 20:40:27 -05002/*
Eric Van Hensbergenace51c42008-10-13 20:40:27 -05003 * 9P Protocol Support Code
4 *
5 * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com>
6 *
7 * Base on code from Anthony Liguori <aliguori@us.ibm.com>
8 * Copyright (C) 2008 by IBM, Corp.
Eric Van Hensbergenace51c42008-10-13 20:40:27 -05009 */
10
Sripathi Kodi342fee12010-03-05 18:50:14 +000011int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
Dominique Martinet6e195b02021-11-02 22:16:43 +090012 va_list ap);
Sripathi Kodi342fee12010-03-05 18:50:14 +000013int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
Eric Van Hensbergen51a87c52008-10-16 08:30:07 -050014int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
Aneesh Kumar K.V348b5902011-08-07 00:46:59 +053015int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
Eric Van Hensbergen51a87c52008-10-16 08:30:07 -050016void p9pdu_reset(struct p9_fcall *pdu);
Aneesh Kumar K.Vabfa0342011-08-16 10:50:10 +053017size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);