fuse_main

Main function of FUSE.

This is for the lazy. This is all that has to be called from the main() function.

This function does the following: - parses command line options (-d -s and -h); - passes relevant mount options to the fuse_mount(); - installs signal handlers for INT, HUP, TERM and PIPE; - registers an exit handler to unmount the filesystem on program exit; - creates a fuse handle; - registers the operations; - calls either the single-threaded or the multi-threaded event loop.

extern (C) nothrow @nogc
int
fuse_main
(
int argc
,
char** argv
,,
void* userData
)

Parameters

argc int

the argument counter passed to the main() function

argv char**

the argument vector passed to the main() function

op fuse_operations*

the file system operation

userData void*

user data supplied in the context during the init() method

Return Value

Type: int

0 on success, nonzero on failure

Meta