c.fuse.fuse

@file

This file defines the library interface of FUSE

IMPORTANT: you should define FUSE_USE_VERSION before including this header. To use the newest API define it to 26 (recommended for any new application), to use the old API define it to 21 (default) 22 or 25, to use the even older 1.X API define it to 11. D usage note: See FuseCompat at the bottom of this file for a D-friendly way to use the FUSE API in a backwards-compatible manner.

Public Imports

c.fuse.fuse_common
public import c.fuse.fuse_common;
Undocumented in source.

Members

Aliases

fuse_dirfil_t
alias fuse_dirfil_t = int function(fuse_dirh_t, const char* name, int type, ino_t ino)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_dirh_t
alias fuse_dirh_t = fuse_dirhandle*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fill_dir_t
alias fuse_fill_dir_t = int function(void* buf, char* name, stat_t* stbuf, off_t off) nothrow @(nogc)

Function to add an entry in a readdir() operation

fuse_processor_t
alias fuse_processor_t = void function(fuse*, fuse_cmd*, void*)

Function type used to process commands

Functions

fuse_clean_cache
int fuse_clean_cache(fuse* fuse)

Iterate over cache removing stale entries use in conjunction with "-oremember"

fuse_destroy
void fuse_destroy(fuse* f)

Destroy the FUSE handle.

fuse_exit
void fuse_exit(fuse* f)

Exit from event loop

fuse_exited
int fuse_exited(fuse* f)

Return the exited flag, which indicates if fuse_exit() has been called

fuse_fs_access
int fuse_fs_access(fuse_fs* fs, char* path, int mask)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_bmap
int fuse_fs_bmap(fuse_fs* fs, char* path, size_t blocksize, uint64_t* idx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_chmod
int fuse_fs_chmod(fuse_fs* fs, char* path, mode_t mode)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_chown
int fuse_fs_chown(fuse_fs* fs, char* path, uid_t uid, gid_t gid)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_create
int fuse_fs_create(fuse_fs* fs, char* path, mode_t mode, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_destroy
void fuse_fs_destroy(fuse_fs* fs)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_fallocate
int fuse_fs_fallocate(fuse_fs* fs, char* path, int mode, off_t offset, off_t length, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_fgetattr
int fuse_fs_fgetattr(fuse_fs* fs, char* path, stat_t* buf, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_flock
int fuse_fs_flock(fuse_fs* fs, char* path, fuse_file_info* fi, int op)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_flush
int fuse_fs_flush(fuse_fs* fs, char* path, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_fsync
int fuse_fs_fsync(fuse_fs* fs, char* path, int datasync, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_fsyncdir
int fuse_fs_fsyncdir(fuse_fs* fs, char* path, int datasync, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_ftruncate
int fuse_fs_ftruncate(fuse_fs* fs, char* path, off_t size, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_getattr
int fuse_fs_getattr(fuse_fs* fs, char* path, stat_t* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_getxattr
int fuse_fs_getxattr(fuse_fs* fs, char* path, char* name, char* value, size_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_init
void fuse_fs_init(fuse_fs* fs, fuse_conn_info* conn)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_ioctl
int fuse_fs_ioctl(fuse_fs* fs, char* path, int cmd, void* arg, fuse_file_info* fi, uint flags, void* data)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_link
int fuse_fs_link(fuse_fs* fs, char* oldpath, char* newpath)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_listxattr
int fuse_fs_listxattr(fuse_fs* fs, char* path, char* list, size_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_lock
int fuse_fs_lock(fuse_fs* fs, char* path, fuse_file_info* fi, int cmd, flock* lock)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_mkdir
int fuse_fs_mkdir(fuse_fs* fs, char* path, mode_t mode)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_mknod
int fuse_fs_mknod(fuse_fs* fs, char* path, mode_t mode, dev_t rdev)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_new
fuse_fs* fuse_fs_new(fuse_operations* op, size_t op_size, void* user_data)

Create a new fuse filesystem object

fuse_fs_open
int fuse_fs_open(fuse_fs* fs, char* path, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_opendir
int fuse_fs_opendir(fuse_fs* fs, char* path, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_poll
int fuse_fs_poll(fuse_fs* fs, char* path, fuse_file_info* fi, fuse_pollhandle* ph, uint* reventsp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_read
int fuse_fs_read(fuse_fs* fs, char* path, char* buf, size_t size, off_t off, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_read_buf
int fuse_fs_read_buf(fuse_fs* fs, char* path, fuse_bufvec** bufp, size_t size, off_t off, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_readdir
int fuse_fs_readdir(fuse_fs* fs, char* path, void* buf, fuse_fill_dir_t filler, off_t off, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_readlink
int fuse_fs_readlink(fuse_fs* fs, char* path, char* buf, size_t len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_release
int fuse_fs_release(fuse_fs* fs, char* path, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_releasedir
int fuse_fs_releasedir(fuse_fs* fs, char* path, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_removexattr
int fuse_fs_removexattr(fuse_fs* fs, char* path, char* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_rename
int fuse_fs_rename(fuse_fs* fs, char* oldpath, char* newpath)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_rmdir
int fuse_fs_rmdir(fuse_fs* fs, char* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_setxattr
int fuse_fs_setxattr(fuse_fs* fs, char* path, char* name, char* value, size_t size, int flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_statfs
int fuse_fs_statfs(fuse_fs* fs, char* path, statvfs_t* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_symlink
int fuse_fs_symlink(fuse_fs* fs, char* linkname, char* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_truncate
int fuse_fs_truncate(fuse_fs* fs, char* path, off_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_unlink
int fuse_fs_unlink(fuse_fs* fs, char* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_utimens
int fuse_fs_utimens(fuse_fs* fs, char* path, timespec* tv)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_write
int fuse_fs_write(fuse_fs* fs, char* path, char* buf, size_t size, off_t off, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs_write_buf
int fuse_fs_write_buf(fuse_fs* fs, char* path, fuse_bufvec* buf, off_t off, fuse_file_info* fi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_get_context
fuse_context* fuse_get_context()

Get the current context

fuse_get_session
fuse_session* fuse_get_session(fuse* f)

Get session from fuse object

fuse_getgroups
int fuse_getgroups(int size, gid_t* list)

Get the current supplementary group IDs for the current request

fuse_interrupted
int fuse_interrupted()

Check if the current request has already been interrupted

fuse_invalidate
int fuse_invalidate(fuse* f, char* path)

Obsolete, doesn't do anything

fuse_is_lib_option
int fuse_is_lib_option(char* opt)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_loop
int fuse_loop(fuse* f)

FUSE event loop.

fuse_loop_mt
int fuse_loop_mt(fuse* f)

FUSE event loop with multiple threads

fuse_loop_mt_proc
int fuse_loop_mt_proc(fuse* f, fuse_processor_t proc, void* data)

Multi threaded event loop, which calls the custom command processor function

fuse_main
int fuse_main(int argc, char** argv, fuse_operations* op, void* user_data)

Main function of FUSE.

fuse_main_real
int fuse_main_real(int argc, char** argv, fuse_operations* op, size_t op_size, void* user_data)

The real main function

fuse_new
fuse* fuse_new(fuse_chan* ch, fuse_args* args, fuse_operations* op, size_t op_size, void* user_data)

Create a new FUSE filesystem.

fuse_notify_poll
int fuse_notify_poll(fuse_pollhandle* ph)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_process_cmd
void fuse_process_cmd(fuse* f, fuse_cmd* cmd)

Process a single command

fuse_read_cmd
fuse_cmd* fuse_read_cmd(fuse* f)

Read a single command. If none are read, return NULL

fuse_register_module
void fuse_register_module(fuse_module* mod)

Register a filesystem module

fuse_set_getcontext_func
void fuse_set_getcontext_func(fuse_context* function() )

This function is obsolete and implemented as a no-op

fuse_setup
fuse* fuse_setup(int argc, char** argv, fuse_operations* op, size_t op_size, char** mountpoint, int* multithreaded, void* user_data)

This is the part of fuse_main() before the event loop

fuse_start_cleanup_thread
int fuse_start_cleanup_thread(fuse* fuse)

Start the cleanup thread when using option "remember".

fuse_stop_cleanup_thread
void fuse_stop_cleanup_thread(fuse* fuse)

Stop the cleanup thread when using option "remember".

fuse_teardown
void fuse_teardown(fuse* fuse, char* mountpoint)

This is the part of fuse_main() after the event loop

Mixin templates

FUSE_REGISTER_MODULE
mixintemplate FUSE_REGISTER_MODULE(const char* name, alias factory)

Register filesystem module

FuseCompat
mixintemplate FuseCompat(uint FUSE_USE_VERSION = default_FUSE_USE_VERSION)

D usage note:

Structs

fuse
struct fuse
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_cmd
struct fuse_cmd
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_context
struct fuse_context

Extra context that may be needed by some filesystems

fuse_dirhandle
struct fuse_dirhandle
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fuse_fs
struct fuse_fs

Fuse filesystem object

fuse_module
struct fuse_module

Filesystem module

fuse_operations
struct fuse_operations

The file system operations:

fusemod_so
struct fusemod_so
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta