summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portfns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-28 09:52:21 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-28 09:52:21 +0200
commit4bd9ed80c379d0f531a8fc8e8307dea36df0c8c0 (patch)
treec3dee1e6b67aff6d8ae53c93c1bd48ee2d638693 /sys/src/9/port/portfns.h
parent311a99e23b2f1adcf01a91db3e551dc1dda9f61a (diff)
kernel: export mntattach() from devmnt.c avoiding bogus struct passing and special case in namec()
we already export mntauth() and mntversion(), so why not stop being sneaky and just export mntattach() so bindmount() and devshr can just call it directly with proper arguments being checked. we can also avoid handling #M attach specially in namec() by having the devmnt's attach function do error(Enoattach).
Diffstat (limited to 'sys/src/9/port/portfns.h')
-rw-r--r--sys/src/9/port/portfns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/port/portfns.h b/sys/src/9/port/portfns.h
index db547d1a1..15ca191a3 100644
--- a/sys/src/9/port/portfns.h
+++ b/sys/src/9/port/portfns.h
@@ -173,6 +173,7 @@ uvlong mk64fract(uvlong, uvlong);
void mkqid(Qid*, vlong, ulong, int);
void mmurelease(Proc*);
void mmuswitch(Proc*);
+Chan* mntattach(Chan*, Chan*, char*, int);
Chan* mntauth(Chan*, char*);
long mntversion(Chan*, char*, int, int);
void mouseresize(void);