Searched refs:uio (Results 1 - 25 of 709) sorted by relevance

1234567891011>>

/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Dsocket.h40 struct uio uio; local
43 uio.uio_iov = v;
44 uio.uio_iovcnt = -1;
45 uio.uio_offset = 0;
46 uio.uio_resid = len;
47 uio.uio_segflag = UIO_USERSPACE;
48 uio.uio_rw = UIO_READ;
49 error = -uiomove(kdata, len, &uio);
56 struct uio ui local
[all...]
/freebsd-head/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_uio.c44 #include <sys/uio.h>
48 * same as uiomove() but doesn't modify uio structure.
52 uiocopy(void *p, size_t n, enum uio_rw rw, struct uio *uio, size_t *cbytes) argument
55 struct uio small_uio_clone;
56 struct uio *uio_clone;
59 ASSERT3U(uio->uio_rw, ==, rw);
60 if (uio->uio_iovcnt == 1) {
61 small_uio_clone = *uio;
62 small_iovec[0] = *uio
80 uioskip(uio_t *uio, size_t n) argument
[all...]
/freebsd-head/lib/libc/stdio/
H A Dputw.c52 struct __suio uio; local
56 uio.uio_resid = iov.iov_len = sizeof(w);
57 uio.uio_iov = &iov;
58 uio.uio_iovcnt = 1;
60 retval = __sfvwrite(fp, &uio);
H A Dputs.c57 struct __suio uio; local
64 uio.uio_resid = c + 1;
65 uio.uio_iov = &iov[0];
66 uio.uio_iovcnt = 2;
69 retval = __sfvwrite(stdout, &uio) ? EOF : '\n';
/freebsd-head/sys/compat/cloudabi32/
H A Dcloudabi32_fd.c35 #include <sys/uio.h>
45 struct uio **uiop)
48 struct uio *uio; local
53 /* Allocate uio and iovecs. */
56 uio = malloc(sizeof(struct uio) + iovcnt * sizeof(struct iovec),
58 iov = (struct iovec *)(uio + 1);
60 /* Initialize uio. */
61 uio
91 struct uio *uio; local
106 struct uio *uio; local
121 struct uio *uio; local
136 struct uio *uio; local
[all...]
/freebsd-head/sys/compat/cloudabi64/
H A Dcloudabi64_fd.c35 #include <sys/uio.h>
45 struct uio **uiop)
48 struct uio *uio; local
53 /* Allocate uio and iovecs. */
56 uio = malloc(sizeof(struct uio) + iovcnt * sizeof(struct iovec),
58 iov = (struct iovec *)(uio + 1);
60 /* Initialize uio. */
61 uio
91 struct uio *uio; local
106 struct uio *uio; local
121 struct uio *uio; local
136 struct uio *uio; local
[all...]
/freebsd-head/sys/kern/
H A Dsubr_uio.c72 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
103 struct uio uio; local
108 uio.uio_iov = iov;
109 uio.uio_iovcnt = 1;
110 uio.uio_offset = 0;
111 uio.uio_resid = len;
112 uio.uio_segflg = UIO_SYSSPACE;
113 uio
124 struct uio uio; local
195 uiomove(void *cp, int n, struct uio *uio) argument
202 uiomove_nofault(void *cp, int n, struct uio *uio) argument
209 uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault) argument
291 uiomove_frombuf(void *buf, int buflen, struct uio *uio) argument
309 ureadc(int c, struct uio *uio) argument
370 struct uio *uio; local
405 struct uio *uio; local
[all...]
/freebsd-head/sys/riscv/riscv/
H A Dmem.c36 #include <sys/uio.h>
49 memrw(struct cdev *dev, struct uio *uio, int flags) argument
60 orig_resid = uio->uio_resid;
61 while (uio->uio_resid > 0 && error == 0) {
62 iov = uio->uio_iov;
64 uio->uio_iov++;
65 uio->uio_iovcnt--;
66 if (uio->uio_iovcnt < 0)
71 v = uio
[all...]
H A Duio_machdep.c47 #include <sys/uio.h>
59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
70 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
72 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
77 while (n > 0 && uio->uio_resid) {
78 iov = uio->uio_iov;
81 uio
[all...]
/freebsd-head/contrib/sendmail/libsm/
H A Dfput.c43 struct sm_uio uio; local
48 iov.iov_len = uio.uio_resid = strlen(s);
49 uio.uio_iov = &iov;
50 uio.uio_iovcnt = 1;
51 return sm_fvwrite(fp, timeout, &uio);
H A Dfwrite.c45 struct sm_uio uio; local
57 uio.uio_resid = iov.iov_len = size;
58 uio.uio_iov = &iov;
59 uio.uio_iovcnt = 1;
62 if (sm_fvwrite(fp, timeout, &uio) == 0)
66 return size - uio.uio_resid;
/freebsd-head/sys/sys/
H A Duio.h31 * @(#)uio.h 8.5 (Berkeley) 2/22/94
55 struct uio { struct
82 struct uio *cloneuio(struct uio *uiop);
85 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
94 int uiomove(void *cp, int n, struct uio *uio);
95 int uiomove_frombuf(void *buf, int buflen, struct uio *uio);
97 struct uio *ui
[all...]
/freebsd-head/sys/mips/mips/
H A Dmem.c61 #include <sys/uio.h>
77 memrw(struct cdev *dev, struct uio *uio, int flags) argument
91 while (uio->uio_resid > 0 && !error) {
92 iov = uio->uio_iov;
94 uio->uio_iov++;
95 uio->uio_iovcnt--;
96 if (uio->uio_iovcnt < 0)
101 v = uio->uio_offset;
103 off = uio
[all...]
H A Duio_machdep.c50 #include <sys/uio.h>
64 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
77 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
79 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
83 while (n > 0 && uio->uio_resid) {
84 iov = uio->uio_iov;
87 uio
[all...]
/freebsd-head/sys/cddl/compat/opensolaris/sys/
H A Duio.h32 #include_next <sys/uio.h>
36 #define FOF_OFFSET 1 /* Use the offset in uio argument */
38 struct uio { struct
51 typedef struct uio uio_t;
62 /* Extended uio fields */
63 enum xuio_type xu_type; /* What kind of uio structure? */
77 zfs_uiomove(void *cp, size_t n, enum uio_rw dir, uio_t *uio) argument
80 ASSERT(uio->uio_rw == dir);
81 return (uiomove(cp, (int)n, uio));
83 #define uiomove(cp, n, dir, uio) zfs_uiomov
[all...]
/freebsd-head/sys/arm64/arm64/
H A Dmem.c36 #include <sys/uio.h>
49 memrw(struct cdev *dev, struct uio *uio, int flags) argument
60 while (uio->uio_resid > 0 && error == 0) {
61 iov = uio->uio_iov;
63 uio->uio_iov++;
64 uio->uio_iovcnt--;
65 if (uio->uio_iovcnt < 0)
70 v = uio->uio_offset;
80 error = uiomove((void *)v, cnt, uio);
[all...]
H A Duio_machdep.c47 #include <sys/uio.h>
59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
70 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
72 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
77 while (n > 0 && uio->uio_resid) {
78 iov = uio->uio_iov;
81 uio
[all...]
/freebsd-head/sys/amd64/amd64/
H A Duio_machdep.c49 #include <sys/uio.h>
61 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
72 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
74 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
79 while (n > 0 && uio->uio_resid) {
80 iov = uio->uio_iov;
83 uio
[all...]
/freebsd-head/sys/fs/ext2fs/
H A Dext2_extattr.h110 struct uio *uio, size_t *size);
113 struct uio *uio, size_t *size);
116 const char *name, struct uio *uio, size_t *size);
119 const char *name, struct uio *uio, size_t *size);
122 const char *name, struct uio *uio);
[all...]
/freebsd-head/sys/compat/cloudabi/
H A Dcloudabi_random.c31 #include <sys/uio.h>
43 struct uio uio = { local
52 return (read_random_uio(&uio, false));
/freebsd-head/sys/i386/i386/
H A Duio_machdep.c51 #include <sys/uio.h>
61 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
72 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
74 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
78 while (n > 0 && uio->uio_resid) {
79 iov = uio->uio_iov;
82 uio
[all...]
/freebsd-head/sys/powerpc/powerpc/
H A Duio_machdep.c49 #include <sys/uio.h>
64 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
76 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
78 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
83 while (n > 0 && uio->uio_resid) {
84 iov = uio->uio_iov;
87 uio
[all...]
/freebsd-head/sys/arm/arm/
H A Duio_machdep.c49 #include <sys/uio.h>
62 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument
73 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
75 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
79 while (n > 0 && uio->uio_resid) {
80 iov = uio->uio_iov;
83 uio
[all...]
/freebsd-head/sys/dev/terasic/mtl/
H A Dterasic_mtl_pixel.c44 #include <sys/uio.h>
68 terasic_mtl_pixel_read(struct cdev *dev, struct uio *uio, int flag) argument
75 if (uio->uio_offset < 0 || uio->uio_offset % 4 != 0 ||
76 uio->uio_resid % 4 != 0)
81 if ((uio->uio_offset + uio->uio_resid < 0) ||
82 (uio->uio_offset + uio
97 terasic_mtl_pixel_write(struct cdev *dev, struct uio *uio, int flag) argument
[all...]
H A Dterasic_mtl_text.c46 #include <sys/uio.h>
70 terasic_mtl_text_read(struct cdev *dev, struct uio *uio, int flag) argument
77 if (uio->uio_offset < 0 || uio->uio_offset % 2 != 0 ||
78 uio->uio_resid % 2 != 0)
83 if ((uio->uio_offset + uio->uio_resid < 0) ||
84 (uio->uio_offset + uio
99 terasic_mtl_text_write(struct cdev *dev, struct uio *uio, int flag) argument
[all...]

Completed in 122 milliseconds

1234567891011>>