Merge tag 'sound-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-block.git] / net / 9p / protocol.h
CommitLineData
1f327613 1/* SPDX-License-Identifier: GPL-2.0-only */
ace51c4d 2/*
ace51c4d
EVH
3 * 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.
ace51c4d
EVH
9 */
10
1effdbf9
CS
11size_t p9_msg_buf_size(struct p9_client *c, enum p9_msg_t type,
12 const char *fmt, va_list ap);
342fee1d 13int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
6e195b0f 14 va_list ap);
342fee1d 15int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
51a87c55 16int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
348b5901 17int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
51a87c55 18void p9pdu_reset(struct p9_fcall *pdu);
abfa034e 19size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);