Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1538883
| From | Stefano Stabellini <sstabellini@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/5] 9p: introduce p9_client_get_req |
| Date | 2016-12-08 22:10 +0100 |
| Message-ID | <sMe70-2Kc-19@gated-at.bofh.it> (permalink) |
| References | <sMdXk-2rQ-3@gated-at.bofh.it> <sMdXk-2rQ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Introduce a simple helper function to only prepare a p9 client request,
without any waiting involved.
Currently not utilized, but it will be used by a later patch.
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
---
net/9p/client.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/net/9p/client.c b/net/9p/client.c
index bfe1715..eb589ef 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -719,6 +719,18 @@ static struct p9_req_t *p9_client_prepare_req(struct p9_client *c,
return ERR_PTR(err);
}
+static struct p9_req_t *
+p9_client_get_req(struct p9_client *c, int8_t type, const char *fmt, ...)
+{
+ va_list ap;
+ struct p9_req_t *req;
+
+ va_start(ap, fmt);
+ req = p9_client_prepare_req(c, type, c->msize, fmt, ap);
+ va_end(ap);
+ return req;
+}
+
/**
* p9_client_rpc - issue a request and wait for a response
* @c: client session
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] async requests support for 9pfs Stefano Stabellini <sstabellini@kernel.org> - 2016-12-08 22:00 +0100
[PATCH 2/5] 9p: store req details and callback in struct p9_req_t Stefano Stabellini <sstabellini@kernel.org> - 2016-12-08 22:00 +0100
Re: [V9fs-developer] [PATCH 2/5] 9p: store req details and callback in struct p9_req_t Dominique Martinet <dominique.martinet@cea.fr> - 2016-12-09 08:30 +0100
Re: [V9fs-developer] [PATCH 2/5] 9p: store req details and callback in struct p9_req_t Stefano Stabellini <sstabellini@kernel.org> - 2016-12-10 00:30 +0100
[PATCH 3/5] 9p: introduce p9_client_get_req Stefano Stabellini <sstabellini@kernel.org> - 2016-12-08 22:10 +0100
[PATCH 1/5] 9p: add iocb parameter to p9_client_read and p9_client_write Stefano Stabellini <sstabellini@kernel.org> - 2016-12-08 22:10 +0100
csiph-web