summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-08-26 06:24:42 +0200
committercinap_lenrek <cinap_lenrek@localhost>2011-08-26 06:24:42 +0200
commit49c122665f0240d9bbb5dc238cc462612f943364 (patch)
tree9d0246f0cb161b4d4c9f3bf619478e889efc064d
parentd24721811638f41894fcfb905c6cff2e70702f7e (diff)
downloadplan9front-49c122665f0240d9bbb5dc238cc462612f943364.tar.xz
9p(2): document postsharesrv and srvrelease/srvacquire
-rw-r--r--sys/man/1/mp3enc1
-rw-r--r--sys/man/2/9p33
-rw-r--r--sys/man/7/juke3
-rw-r--r--sys/man/7/playlistfs3
4 files changed, 35 insertions, 5 deletions
diff --git a/sys/man/1/mp3enc b/sys/man/1/mp3enc
index 53b533bb2..aac9931a8 100644
--- a/sys/man/1/mp3enc
+++ b/sys/man/1/mp3enc
@@ -196,7 +196,6 @@ dd -conv swab | games/mp3enc -a -r -m m --resample 16 -b 24
.IR mp3dec (1),
.IR audio (3),
.IR cdfs (4),
-.IR audio (7),
.IR juke (7),
.IR playlistfs (7)
.br
diff --git a/sys/man/2/9p b/sys/man/2/9p
index 5ec62552f..32e2f9173 100644
--- a/sys/man/2/9p
+++ b/sys/man/2/9p
@@ -63,7 +63,9 @@ typedef struct Srv {
.ta \w'\fLvoid* 'u
int srv(Srv *s)
void postmountsrv(Srv *s, char *name, char *mtpt, int flag)
+void postsharesrv(Srv *s, char *name, char *mtpt, char *desc)
void threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
+void threadpostsharesrv(Srv *s, char *name, char *mtpt, char *desc)
void listensrv(Srv *s, char *addr)
void threadlistensrv(Srv *s, char *addr)
int postfd(char *srvname, int fd)
@@ -80,6 +82,15 @@ void walkandclone(Req *r, char *(*walk1)(Fid *old, char *name, void *v),
.nf
.ft L
.ta \w'\fLvoid* 'u
+void srvrelease(Srv *s)
+void srvacquire(Srv *s)
+.fi
+.PP
+.fi
+.PP
+.nf
+.ft L
+.ta \w'\fLvoid* 'u
void* emalloc9p(ulong n)
void* erealloc9p(void *v, ulong n)
char* estrdup9p(char *s)
@@ -224,6 +235,18 @@ this process, the entire process is terminated by calling
(see
.IR perror (2)).
.PP
+.I Postsharesrv
+is similar to
+.I Postmountsrv
+but instead of mounting the service on a directory, it is
+put in a share (see
+.IR shr (3))
+where
+.IB mtpt
+is the name of the share and
+.IB desc
+is the name of the service channel.
+.PP
.I Listensrv
and
.I threadlistensrv
@@ -334,6 +357,15 @@ If it is expected that some requests might
block, arranging for alternate processes
to handle them is suggested.
.PP
+.I Srvrelease
+detaches the calling process from the server loop and
+if neccesary spawns a new process to handle 9p requests.
+When released, the process is free to do blocking work
+or even exit because it now running in parallel to the
+server loop.
+.I Srvacquire
+joins the calling (released) process with the server loop.
+.PP
The constraints on the service functions are as follows.
These constraints are checked while the server executes.
If a service function fails to do something it ought to have,
@@ -781,6 +813,7 @@ or is maintained elsewhere.
.IR 9pfid (2),
.IR 9pfile (2),
.IR srv (3),
+.IR shr (3),
.IR intro (5)
.SH BUGS
The switch to 9P2000 was taken as an opportunity to tidy
diff --git a/sys/man/7/juke b/sys/man/7/juke
index 229c75a2a..1e49f43f5 100644
--- a/sys/man/7/juke
+++ b/sys/man/7/juke
@@ -365,5 +365,4 @@ Default mount point for the music database.
.SH SOURCE
.B /sys/src/games/music
.SH SEE ALSO
-.IR playlistfs (7),
-.IR audio (7)
+.IR playlistfs (7).
diff --git a/sys/man/7/playlistfs b/sys/man/7/playlistfs
index e3bd2e4a8..61c951807 100644
--- a/sys/man/7/playlistfs
+++ b/sys/man/7/playlistfs
@@ -152,5 +152,4 @@ Volume control file
.SH SOURCE
.B /sys/src/games/music/playlistfs
.SH SEE ALSO
-.IR juke (7),
-.IR audio (7)
+.IR juke (7).