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

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

Hook for receiving a raw request

Parameters:
ch pointer to the channel
buf the buffer to store the request in
size the 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:
ch the channel
iov vector of blocks
count the number of blocks in vector
Returns:
zero on success, -errno on failure

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

Destroy the channel

Parameters:
ch the channel


The documentation for this struct was generated from the following file:
Generated on Tue Oct 9 13:59:40 2007 for fuse by  doxygen 1.5.0