Searched refs:bufv (Results 1 – 6 of 6) sorted by relevance
/third_party/libfuse/lib/ |
D | buffer.c | 22 size_t fuse_buf_size(const struct fuse_bufvec *bufv) in fuse_buf_size() argument 27 for (i = 0; i < bufv->count; i++) { in fuse_buf_size() 28 if (bufv->buf[i].size == SIZE_MAX) in fuse_buf_size() 31 size += bufv->buf[i].size; in fuse_buf_size() 257 static const struct fuse_buf *fuse_bufvec_current(struct fuse_bufvec *bufv) in fuse_bufvec_current() argument 259 if (bufv->idx < bufv->count) in fuse_bufvec_current() 260 return &bufv->buf[bufv->idx]; in fuse_bufvec_current() 265 static int fuse_bufvec_advance(struct fuse_bufvec *bufv, size_t len) in fuse_bufvec_advance() argument 267 const struct fuse_buf *buf = fuse_bufvec_current(bufv); in fuse_bufvec_advance() 272 bufv->off += len; in fuse_bufvec_advance() [all …]
|
D | fuse_lowlevel.c | 874 int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv, argument 887 res = fuse_send_data_iov(req->se, req->ch, iov, 1, bufv, flags); 1405 struct fuse_bufvec bufv = { local 1417 bufv.buf[0].mem = ((char *) arg) + FUSE_COMPAT_WRITE_IN_SIZE; 1418 bufv.buf[0].size -= sizeof(struct fuse_in_header) + 1420 assert(!(bufv.buf[0].flags & FUSE_BUF_IS_FD)); 1424 if (!(bufv.buf[0].flags & FUSE_BUF_IS_FD)) 1425 bufv.buf[0].mem = PARAM(arg); 1427 bufv.buf[0].size -= sizeof(struct fuse_in_header) + 1430 if (bufv.buf[0].size < arg->size) { [all …]
|
D | fuse.c | 1902 struct fuse_bufvec bufv = FUSE_BUFVEC_INIT(size); in fuse_fs_write() local 1904 bufv.buf[0].mem = (void *) mem; in fuse_fs_write() 1906 return fuse_fs_write_buf(fs, path, &bufv, off, fi); in fuse_fs_write()
|
/third_party/libfuse/example/ |
D | notify_store_retrieve.c | 247 struct fuse_bufvec bufv; in tfs_retrieve_reply() local 256 bufv.count = 1; in tfs_retrieve_reply() 257 bufv.idx = 0; in tfs_retrieve_reply() 258 bufv.off = 0; in tfs_retrieve_reply() 259 bufv.buf[0].size = MAX_STR_LEN; in tfs_retrieve_reply() 260 bufv.buf[0].mem = buf; in tfs_retrieve_reply() 261 bufv.buf[0].flags = 0; in tfs_retrieve_reply() 263 ret = fuse_buf_copy(&bufv, data, 0); in tfs_retrieve_reply() 296 struct fuse_bufvec bufv; in update_fs_loop() local 304 bufv.count = 1; in update_fs_loop() [all …]
|
/third_party/libfuse/include/ |
D | fuse_lowlevel.h | 1126 struct fuse_bufvec *bufv, off_t off, 1142 off_t offset, struct fuse_bufvec *bufv); 1464 int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv, 1801 off_t offset, struct fuse_bufvec *bufv,
|
D | fuse_common.h | 832 size_t fuse_buf_size(const struct fuse_bufvec *bufv);
|