aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/9p
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2008-10-13 21:40:27 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2008-10-17 12:04:44 -0400
commitace51c4dd2f968f427c4627023759ae7e3786cba (patch)
tree5d3b82a8a3deb4496a40a2440305c5ace145c5c7 /include/net/9p
parent6936bf60d2c407449c09e3f28ec0301e1f937106 (diff)
9p: add new protocol support code
This adds a new protocol processing support code based on Anthony Liguori's 9p library code. This code performs protocol marshalling/unmarshalling using printf like strings to represent protocol elements. It is my intent to use them to replace the current functions in conv.c as well as the p9_create_* functions. This should make the client implementation much more clear, and also make it much easier to add new protocol extensions by limiting the number of places in which changes need to be made. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net/9p')
-rw-r--r--include/net/9p/9p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h
index fb163e2e0de6..f9e25268b70f 100644
--- a/include/net/9p/9p.h
+++ b/include/net/9p/9p.h
@@ -509,6 +509,8 @@ struct p9_rwstat {
509 * @size: prefixed length of the structure 509 * @size: prefixed length of the structure
510 * @id: protocol operating identifier of type &p9_msg_t 510 * @id: protocol operating identifier of type &p9_msg_t
511 * @tag: transaction id of the request 511 * @tag: transaction id of the request
512 * @offset: used by marshalling routines to track currentposition in buffer
513 * @capacity: used by marshalling routines to track total capacity
512 * @sdata: payload 514 * @sdata: payload
513 * @params: per-operation parameters 515 * @params: per-operation parameters
514 * 516 *
@@ -523,7 +525,11 @@ struct p9_fcall {
523 u32 size; 525 u32 size;
524 u8 id; 526 u8 id;
525 u16 tag; 527 u16 tag;
526 void *sdata; 528
529 size_t offset;
530 size_t capacity;
531
532 uint8_t *sdata;
527 533
528 union { 534 union {
529 struct p9_tversion tversion; 535 struct p9_tversion tversion;