Lines Matching defs:uio

57 #include <sys/uio.h>
110 static int ufs_read(struct vnode *, struct uio *, int, struct cred *,
112 static int ufs_write(struct vnode *, struct uio *, int, struct cred *,
138 static int ufs_readdir(struct vnode *, struct uio *, struct cred *, int *,
142 static int ufs_readlink(struct vnode *, struct uio *, struct cred *,
303 ufs_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cr,
405 ufs_check_rewrite(struct inode *ip, struct uio *uiop, int ioflag)
420 * updated after the write. The uio structure has not yet been
433 ufs_write(struct vnode *vp, struct uio *uiop, int ioflag, cred_t *cr,
734 wrip(struct inode *ip, struct uio *uio, int ioflag, struct cred *cr)
736 rlim64_t limit = uio->uio_llimit;
743 long start_resid = uio->uio_resid; /* save starting resid */
792 if (uio->uio_loffset >= limit) {
811 if (uio->uio_loffset < (offset_t)0) {
814 if (uio->uio_resid == 0) {
818 if (uio->uio_loffset >= limit)
831 uio->uio_llimit = limit;
832 error = ufs_directio_write(ip, uio, ioflag, 0, cr,
838 if (start_resid != uio->uio_resid ||
882 u_offset_t uoff = uio->uio_loffset;
886 n = (int)MIN(fs->fs_bsize - on, uio->uio_resid);
1002 premove_resid = uio->uio_resid;
1010 uio_prefaultpages((long)n, uio);
1019 uio, !pagecreate, &newpage, 0, S_WRITE);
1034 error = uiomove(base + mapon, (long)n, UIO_WRITE, uio);
1043 * If there is only one iovec structure within uio, then
1044 * on error uiomove will not be able to update uio->uio_loffset
1051 uio->uio_loffset < roundup(off + mapon + n, PAGESIZE)) {
1060 nmoved = (int)(uio->uio_loffset - (off + mapon));
1138 uio->uio_resid = premove_resid;
1220 uio->uio_resid = premove_resid;
1285 if (!ufs_check_rewrite(ip, uio, ioflag) || !(ioflag & FDSYNC)) {
1288 } while (error == 0 && uio->uio_resid > 0 && n != 0);
1329 if ((start_resid != uio->uio_resid) && (error != ENOSPC))
1341 rdip(struct inode *ip, struct uio *uio, int ioflag, cred_t *cr)
1348 long oresid = uio->uio_resid;
1376 if (uio->uio_loffset > UFS_MAXOFFSET_T) {
1380 if (uio->uio_loffset < (offset_t)0) {
1383 if (uio->uio_resid == 0) {
1397 error = ufs_directio_read(ip, uio, cr, &directio_status);
1406 u_offset_t uoff = uio->uio_loffset;
1411 (u_offset_t)uio->uio_resid);
1463 uio, 1, NULL, 0, S_READ);
1467 error = uiomove(base + mapon, (long)n, UIO_READ, uio);
1511 } while (error == 0 && uio->uio_resid > 0 && n != 0);
1540 if (oresid != uio->uio_resid)
2463 ufs_readlink(struct vnode *vp, struct uio *uiop, struct cred *cr,
2520 struct uio tuio; /* temp uio struct */
2521 struct uio *tuiop;
2545 bzero(&tuio, sizeof (struct uio));
3905 struct uio *uiop,
4305 struct uio auio;