static ssize_t idesc_file_ops_read(struct idesc *idesc, const struct iovec *iov, int cnt) { void *buf; size_t nbyte; assert(idesc); assert(idesc->idesc_ops == &idesc_file_ops); assert(iov); assert(cnt == 1); buf = iov->iov_base; nbyte = iov->iov_len; return dvfs_read((struct file *) idesc, buf, nbyte); }
static ssize_t idesc_file_ops_read(struct idesc *idesc, void *buf, size_t nbyte) { assert(idesc); assert(idesc->idesc_ops == &idesc_file_ops); return dvfs_read((struct file *) idesc, buf, nbyte); }