summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-11-01 11:42:54 -0800
committerOri Bernstein <ori@eigenstate.org>2020-11-01 11:42:54 -0800
commitdbd54342fd66fd372f5c2edd1597019814f41c9c (patch)
treecf76f6c4109d814a7df663e38dd7fdc1a9127f12 /sys/include
parentb5086c1863fe10faf48ab675f503e562ec8dfcf0 (diff)
libbio: add aux pointer to bio
This allows us to attach additional context to the biobuf so can read from some sort of data structure without a global variable.
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/bio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/bio.h b/sys/include/bio.h
index 2a874de31..2c5cdc8cf 100644
--- a/sys/include/bio.h
+++ b/sys/include/bio.h
@@ -34,6 +34,7 @@ struct Biobufhdr
uchar* gbuf; /* pointer to good data in buf */
void (*errorf)(char *); /* called on error if not nil */
int (*iof)(Biobufhdr*, void *, long); /* called to do i/o */
+ void *aux; /* user data */
};
struct Biobuf