FUSE_LOOP(3) | Library Functions Manual | FUSE_LOOP(3) |
fuse_loop
,
fuse_loop_mt
— wait for and
process FUSE messages
#include
<fuse.h>
int
fuse_loop
(struct
fuse *fuse);
int
fuse_loop_mt
(struct
fuse *fuse);
fuse_loop
()
reads from the FUSE device and blocks, waiting for the kernel to send it
fbuf messages. Each of these specifies a FUSE file system operation to
execute. The callbacks to invoke are specified by calling
fuse_new(3) or
fuse_setup(3) prior to
calling fuse_loop
().
fuse_loop
()
will return when it reads the FBT_DESTROY message, which indicates that the
file system is being unmounted.
If FUSE signaler handlers have been installed and
either SIGHUP, SIGINT or SIGTERM is received then
fuse_loop
()
will attempt to unmount the file system. See
fuse_set_signal_handlers(3).
fuse_loop_mt
()
is a multi-threaded variant that allows the file system to process multiple
file system operations in parallel. This is not implemented on
OpenBSD.
fuse_loop
() will return 0 on success and
-1 on failure.
fuse_loop_mt
() always returns -1.
The fuse_loop
() and
fuse_loop_mt
() functions conform to FUSE 2.6.
The fuse_loop
() and
fuse_loop_mt
() functions first appeared in
OpenBSD 5.4.
Sylvestre Gallon
<ccna.syl@gmail.com>
Helg Bredow
<helg@openbsd.org>
July 8, 2018 | OpenBSD-6.7 |