Logo Search packages:      
Sourcecode: fuse version File versions  Download package

int fuse_reply_ioctl_iov ( fuse_req_t  req,
int  result,
const struct iovec *  iov,
int  count 

Reply to finish ioctl with iov buffer

Possible requests: ioctl

reqrequest handle
resultresult to be passed to the caller
iovthe vector containing the data
countthe size of vector

Definition at line 479 of file fuse_lowlevel.c.

References fuse_reply_err(), and fuse_reply_ioctl_iov().

Referenced by fuse_reply_ioctl_iov().

      struct iovec *padded_iov;
      struct fuse_ioctl_out arg;
      int res;

      padded_iov = malloc((count + 2) * sizeof(struct iovec));
      if (padded_iov == NULL)
            return fuse_reply_err(req, -ENOMEM);

      memset(&arg, 0, sizeof(arg));
      arg.result = result;
      padded_iov[1].iov_base = &arg;
      padded_iov[1].iov_len = sizeof(arg);

      memcpy(&padded_iov[2], iov, count * sizeof(struct iovec));

      res = send_reply_iov(req, 0, padded_iov, count + 2);

      return res;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index