fuse
Data Fields
fuse_chan_ops Struct Reference

#include <fuse_lowlevel.h>

Data Fields

int(* receive )(struct fuse_chan **chp, char *buf, size_t size)
 
int(* send )(struct fuse_chan *ch, const struct iovec iov[], size_t count)
 
void(* destroy )(struct fuse_chan *ch)
 

Detailed Description

Channel operations

This is used in channel creation

Field Documentation

void(* fuse_chan_ops::destroy)(struct fuse_chan *ch)

Destroy the channel

Parameters
chthe channel
int(* fuse_chan_ops::receive)(struct fuse_chan **chp, char *buf, size_t size)

Hook for receiving a raw request

Parameters
chpointer to the channel
bufthe buffer to store the request in
sizethe size of the buffer
Returns
the actual size of the raw request, or -1 on error
int(* fuse_chan_ops::send)(struct fuse_chan *ch, const struct iovec iov[], size_t count)

Hook for sending a raw reply

A return value of -ENOENT means, that the request was interrupted, and the reply was discarded

Parameters
chthe channel
iovvector of blocks
countthe number of blocks in vector
Returns
zero on success, -errno on failure

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