aboutsummaryrefslogtreecommitdiff
path: root/man/man3/9p.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/9p.3')
-rw-r--r--man/man3/9p.310
1 files changed, 9 insertions, 1 deletions
diff --git a/man/man3/9p.3 b/man/man3/9p.3
index 109c452e..56f0cef3 100644
--- a/man/man3/9p.3
+++ b/man/man3/9p.3
@@ -46,6 +46,7 @@ typedef struct Srv {
void (*destroyfid)(Fid *fid);
void (*destroyreq)(Req *r);
+ void (*start)(Srv *s);
void (*end)(Srv *s);
void* aux;
@@ -308,7 +309,7 @@ These constraints are checked while the server executes.
If a service function fails to do something it ought to have,
.I srv
will call
-.I endsrv
+.I end
and then abort.
.TP
.I Auth
@@ -654,6 +655,7 @@ has been sent.
.PP
.IR Destroyfid ,
.IR destroyreq ,
+.IR start ,
and
.I end
are auxiliary functions, not called in direct response to 9P requests.
@@ -684,6 +686,12 @@ is called to allow the program to dispose of the
.IB r -> aux
pointer.
.TP
+.I Start
+Before the 9P service loop begins, the service proc calls
+.I start
+so that the server can run any initialization that must be
+done from inside the service proc.
+.TP
.I End
Once the 9P service loop has finished
(end of file been reached on the service pipe