2 FUSE: Filesystem in Userspace
3 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
5 This program can be distributed under the terms of the GNU LGPLv2.
6 See the file COPYING.LIB.
11 #include "fuse_lowlevel.h"
13 struct fuse_chan
*fuse_mount(const char *mountpoint
, struct fuse_args
*args
)
18 fd
= fuse_kern_mount(mountpoint
, args
);
22 ch
= fuse_kern_chan_new(fd
);
24 fuse_kern_unmount(mountpoint
, fd
);
29 void fuse_unmount(const char *mountpoint
, struct fuse_chan
*ch
)
31 int fd
= ch
? fuse_chan_fd(ch
) : -1;
32 fuse_kern_unmount(mountpoint
, fd
);
33 fuse_chan_destroy(ch
);
36 int fuse_version(void)