9p(2): document postsharesrv and srvrelease/srvacquire
This commit is contained in:
parent
d247218116
commit
49c122665f
4 changed files with 35 additions and 5 deletions
|
@ -196,7 +196,6 @@ dd -conv swab | games/mp3enc -a -r -m m --resample 16 -b 24
|
||||||
.IR mp3dec (1),
|
.IR mp3dec (1),
|
||||||
.IR audio (3),
|
.IR audio (3),
|
||||||
.IR cdfs (4),
|
.IR cdfs (4),
|
||||||
.IR audio (7),
|
|
||||||
.IR juke (7),
|
.IR juke (7),
|
||||||
.IR playlistfs (7)
|
.IR playlistfs (7)
|
||||||
.br
|
.br
|
||||||
|
|
33
sys/man/2/9p
33
sys/man/2/9p
|
@ -63,7 +63,9 @@ typedef struct Srv {
|
||||||
.ta \w'\fLvoid* 'u
|
.ta \w'\fLvoid* 'u
|
||||||
int srv(Srv *s)
|
int srv(Srv *s)
|
||||||
void postmountsrv(Srv *s, char *name, char *mtpt, int flag)
|
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 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 listensrv(Srv *s, char *addr)
|
||||||
void threadlistensrv(Srv *s, char *addr)
|
void threadlistensrv(Srv *s, char *addr)
|
||||||
int postfd(char *srvname, int fd)
|
int postfd(char *srvname, int fd)
|
||||||
|
@ -80,6 +82,15 @@ void walkandclone(Req *r, char *(*walk1)(Fid *old, char *name, void *v),
|
||||||
.nf
|
.nf
|
||||||
.ft L
|
.ft L
|
||||||
.ta \w'\fLvoid* 'u
|
.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* emalloc9p(ulong n)
|
||||||
void* erealloc9p(void *v, ulong n)
|
void* erealloc9p(void *v, ulong n)
|
||||||
char* estrdup9p(char *s)
|
char* estrdup9p(char *s)
|
||||||
|
@ -224,6 +235,18 @@ this process, the entire process is terminated by calling
|
||||||
(see
|
(see
|
||||||
.IR perror (2)).
|
.IR perror (2)).
|
||||||
.PP
|
.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
|
.I Listensrv
|
||||||
and
|
and
|
||||||
.I threadlistensrv
|
.I threadlistensrv
|
||||||
|
@ -334,6 +357,15 @@ If it is expected that some requests might
|
||||||
block, arranging for alternate processes
|
block, arranging for alternate processes
|
||||||
to handle them is suggested.
|
to handle them is suggested.
|
||||||
.PP
|
.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.
|
The constraints on the service functions are as follows.
|
||||||
These constraints are checked while the server executes.
|
These constraints are checked while the server executes.
|
||||||
If a service function fails to do something it ought to have,
|
If a service function fails to do something it ought to have,
|
||||||
|
@ -781,6 +813,7 @@ or is maintained elsewhere.
|
||||||
.IR 9pfid (2),
|
.IR 9pfid (2),
|
||||||
.IR 9pfile (2),
|
.IR 9pfile (2),
|
||||||
.IR srv (3),
|
.IR srv (3),
|
||||||
|
.IR shr (3),
|
||||||
.IR intro (5)
|
.IR intro (5)
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
The switch to 9P2000 was taken as an opportunity to tidy
|
The switch to 9P2000 was taken as an opportunity to tidy
|
||||||
|
|
|
@ -365,5 +365,4 @@ Default mount point for the music database.
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B /sys/src/games/music
|
.B /sys/src/games/music
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.IR playlistfs (7),
|
.IR playlistfs (7).
|
||||||
.IR audio (7)
|
|
||||||
|
|
|
@ -152,5 +152,4 @@ Volume control file
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B /sys/src/games/music/playlistfs
|
.B /sys/src/games/music/playlistfs
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.IR juke (7),
|
.IR juke (7).
|
||||||
.IR audio (7)
|
|
||||||
|
|
Loading…
Reference in a new issue