/* FUSE: Filesystem in Userspace Copyright (C) 2001-2007 Miklos Szeredi This program can be distributed under the terms of the GNU LGPLv2. See the file COPYING.LIB */ #include "fuse_lowlevel.h" #include "fuse_kernel.h" #include "fuse_i.h" #include #include #include #include static void fuse_kern_chan_destroy(struct fuse_chan *ch) { close(fuse_chan_fd(ch)); } struct fuse_chan *fuse_kern_chan_new(int fd) { struct fuse_chan_ops op = { .destroy = fuse_kern_chan_destroy, }; return fuse_chan_new(&op, fd); }