From 4bd9ed80c379d0f531a8fc8e8307dea36df0c8c0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 28 Jul 2015 09:52:21 +0200 Subject: 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). --- sys/src/9/port/portfns.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/src/9/port/portfns.h') 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); -- cgit v1.2.3