Thomas Gleixner | 1f32761 | 2019-05-28 09:57:16 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Eric Van Hensbergen | ace51c4 | 2008-10-13 20:40:27 -0500 | [diff] [blame] | 2 | /* |
Eric Van Hensbergen | ace51c4 | 2008-10-13 20:40:27 -0500 | [diff] [blame] | 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. |
Eric Van Hensbergen | ace51c4 | 2008-10-13 20:40:27 -0500 | [diff] [blame] | 9 | */ |
| 10 | |
Sripathi Kodi | 342fee1 | 2010-03-05 18:50:14 +0000 | [diff] [blame] | 11 | int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt, |
Dominique Martinet | 6e195b0 | 2021-11-02 22:16:43 +0900 | [diff] [blame] | 12 | va_list ap); |
Sripathi Kodi | 342fee1 | 2010-03-05 18:50:14 +0000 | [diff] [blame] | 13 | int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...); |
Eric Van Hensbergen | 51a87c5 | 2008-10-16 08:30:07 -0500 | [diff] [blame] | 14 | int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type); |
Aneesh Kumar K.V | 348b590 | 2011-08-07 00:46:59 +0530 | [diff] [blame] | 15 | int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu); |
Eric Van Hensbergen | 51a87c5 | 2008-10-16 08:30:07 -0500 | [diff] [blame] | 16 | void p9pdu_reset(struct p9_fcall *pdu); |
Aneesh Kumar K.V | abfa034 | 2011-08-16 10:50:10 +0530 | [diff] [blame] | 17 | size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size); |