fuse
Data Fields
fuse_session_ops Struct Reference

#include <fuse_lowlevel.h>

Data Fields

void(* process )(void *data, const char *buf, size_t len, struct fuse_chan *ch)
 
void(* exit )(void *data, int val)
 
int(* exited )(void *data)
 
void(* destroy )(void *data)
 

Detailed Description

Session operations

This is used in session creation

Field Documentation

void(* fuse_session_ops::destroy)(void *data)

Hook for cleaning up the channel on destroy (optional)

Parameters
datauser data passed to fuse_session_new()
void(* fuse_session_ops::exit)(void *data, int val)

Hook for session exit and reset (optional)

Parameters
datauser data passed to fuse_session_new()
valexited status (1 - exited, 0 - not exited)
int(* fuse_session_ops::exited)(void *data)

Hook for querying the current exited status (optional)

Parameters
datauser data passed to fuse_session_new()
Returns
1 if exited, 0 if not exited
void(* fuse_session_ops::process)(void *data, const char *buf, size_t len, struct fuse_chan *ch)

Hook to process a request (mandatory)

Parameters
datauser data passed to fuse_session_new()
bufbuffer containing the raw request
lenrequest length
chchannel on which the request was received

The documentation for this struct was generated from the following file: