]> git.lizzy.rs Git - plan9front.git/commit
kernel: export mntattach() from devmnt.c avoiding bogus struct passing and special...
authorcinap_lenrek <cinap_lenrek@felloff.net>
Tue, 28 Jul 2015 07:52:21 +0000 (09:52 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Tue, 28 Jul 2015 07:52:21 +0000 (09:52 +0200)
commit4bd9ed80c379d0f531a8fc8e8307dea36df0c8c0
treec3dee1e6b67aff6d8ae53c93c1bd48ee2d638693
parent311a99e23b2f1adcf01a91db3e551dc1dda9f61a
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/chan.c
sys/src/9/port/devmnt.c
sys/src/9/port/devshr.c
sys/src/9/port/portfns.h
sys/src/9/port/sysfile.c