diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-03-17 12:00:29 +0100 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-06-15 14:06:15 +0200 |
| commit | a73a7883b40ea0a123409ef39a072218401ac5d8 (patch) | |
| tree | 8bc7a95ea23aebdadc8e5297d0d8cfa0cb9839d6 /fs/fuse/dev.h | |
| parent | f14348575dec6430c37f1bc9b6c7652bbaa7169f (diff) | |
| download | linux-next-a73a7883b40ea0a123409ef39a072218401ac5d8.tar.gz linux-next-a73a7883b40ea0a123409ef39a072218401ac5d8.zip | |
fuse: add struct fuse_chan
The goal is to separate transport layer stuff out from struct fuse_conn,
leaving just the filesystem related members.
Add a new object referenced from fuse_conn. This patch just implements the
allocation and freeing of this object.
Following patches will move transport related members from fuse_conn to
fuse_chan.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.h')
| -rw-r--r-- | fs/fuse/dev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/fuse/dev.h b/fs/fuse/dev.h index f7db15c33cf9..70e4a75e6942 100644 --- a/fs/fuse/dev.h +++ b/fs/fuse/dev.h @@ -3,7 +3,14 @@ #ifndef _FS_FUSE_DEV_H #define _FS_FUSE_DEV_H +#include <linux/cleanup.h> + struct fuse_conn; +struct fuse_chan; + +struct fuse_chan *fuse_chan_new(void); +void fuse_chan_free(struct fuse_chan *fch); +DEFINE_FREE(fuse_chan_free, struct fuse_chan *, if (_T) fuse_chan_free(_T)) void fuse_init_server_timeout(struct fuse_conn *fc, unsigned int timeout); |
