Lines Matching defs:uio
52 #include <sys/uio.h>
59 dogetrandom(struct uio *uio, unsigned int flags)
78 if (uio->uio_resid <= RANDOM_BUFSIZE &&
82 cprng_strong(user_cprng, buf, uio->uio_resid, 0);
83 error = uiomove(buf, uio->uio_resid, uio);
112 while (uio->uio_resid) {
113 size_t n = MIN(uio->uio_resid, RANDOM_BUFSIZE);
163 error = uiomove(buf, n, uio);
210 /* Set up an iov and uio to read into the user's buffer. */
212 struct uio uio = {
235 error = dogetrandom(&uio, flags);
241 *retval = buflen - uio.uio_resid;