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

1234567891011>>

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfput.c45 struct sm_uio uio; local
50 iov.iov_len = uio.uio_resid = strlen(s);
51 uio.uio_iov = &iov;
52 uio.uio_iovcnt = 1;
53 return sm_fvwrite(fp, timeout, &uio);
H A Dfwrite.c47 struct sm_uio uio; local
59 uio.uio_resid = iov.iov_len = size;
60 uio.uio_iov = &iov;
61 uio.uio_iovcnt = 1;
64 if (sm_fvwrite(fp, timeout, &uio) == 0)
68 return size - uio.uio_resid;
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dreparse.c35 #include <sys/uio.h>
57 struct uio uio; local
70 uio.uio_iov = &iov;
71 uio.uio_iovcnt = 1;
72 uio.uio_segflg = UIO_SYSSPACE;
73 uio.uio_extflg = UIO_COPY_CACHED;
74 uio.uio_loffset = (offset_t)0;
75 uio.uio_resid = MAXREPARSELEN;
77 if ((err = VOP_READLINK(vp, &uio, zone_kcre
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Duio.c20 #include <sys/uio.h>
25 * of the move, and the I/O parameters are provided in "uio", which is
30 uiomove(void *p, size_t n, enum uio_rw rw, struct uio *uio) argument
35 while (n && uio->uio_resid) {
36 iov = uio->uio_iov;
39 uio->uio_iov++;
40 uio->uio_iovcnt--;
43 switch (uio->uio_segflg) {
58 uio
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dcopyops.c35 int rw, void (*mincnt)(struct buf *), struct uio *uio)
37 return (default_physio(strat, bp, dev, rw, mincnt, uio));
34 physio(int (*strat)(struct buf *), struct buf *bp, dev_t dev, int rw, void (*mincnt)(struct buf *), struct uio *uio) argument
H A Dvm_subr.c48 #include <sys/uio.h>
132 int rw, void (*mincnt)(struct buf *), struct uio *uio)
148 tnf_offset, offset, uio->uio_loffset,
149 tnf_size, size, uio->uio_resid,
169 if (uio->uio_segflg == UIO_USERSPACE) {
193 while (uio->uio_iovcnt > 0) {
194 iov = uio->uio_iov;
200 if (uio->uio_resid == 0)
202 if (uio
131 default_physio(int (*strat)(struct buf *), struct buf *bp, dev_t dev, int rw, void (*mincnt)(struct buf *), struct uio *uio) argument
[all...]
H A Dmove.c43 #include <sys/uio.h>
58 * of the move, and the I/O parameters are provided in "uio", which is
63 uiomove(void *p, size_t n, enum uio_rw rw, struct uio *uio) argument
69 while (n && uio->uio_resid) {
70 iov = uio->uio_iov;
73 uio->uio_iov++;
74 uio->uio_iovcnt--;
77 switch (uio->uio_segflg) {
83 (uio
121 uio_prefaultpages(ssize_t n, struct uio *uio) argument
186 uiocopy(void *p, size_t n, enum uio_rw rw, struct uio *uio, size_t *cbytes) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsodirect.h78 extern uio_t *sod_rcv_init(struct sonode *, int, struct uio **);
79 extern int sod_rcv_done(struct sonode *, struct uio *, struct uio *);
83 struct uio *);
/illumos-gate/usr/src/uts/common/sys/
H A Daio_req.h41 struct uio *aio_uio; /* UIO for this request */
H A Dcopyops.h34 #include <sys/uio.h>
88 int, void (*)(struct buf *), struct uio *);
92 dev_t, int, void (*)(struct buf *), struct uio *);
/illumos-gate/usr/src/uts/common/io/
H A Dsmbios.c116 smb_uiomove(smb_clone_t *cp, uio_t *uio) argument
118 off_t off = uio->uio_offset;
119 size_t len = uio->uio_resid;
139 err = uiomove((char *)ep + off, eprlen, UIO_READ, uio);
151 MIN(len, cp->c_stlen - bufoff), UIO_READ, uio);
159 smb_read(dev_t dev, uio_t *uio, cred_t *cred) argument
163 if (uio->uio_offset < 0 ||
164 uio->uio_offset >= cp->c_eplen + cp->c_stlen)
167 return (smb_uiomove(cp, uio));
181 uio_t uio; local
[all...]
H A Dtty_pty.c34 #include <sys/uio.h>
56 int ptcwrite(dev_t, struct uio *, struct cred *);
57 int ptcread(dev_t, struct uio *, struct cred *);
67 static int makemsg(ssize_t count, struct uio *uiop,
322 ptcread(dev_t dev, struct uio *uio, struct cred *cred) argument
336 off = uio->uio_offset;
354 error = ureadc((int)tmp, uio);
355 uio->uio_offset = off;
374 error = ureadc((int)tmp, uio);
523 ptcwrite(dev_t dev, struct uio *uio, struct cred *cred) argument
[all...]
H A Dmem.c43 #include <sys/uio.h>
123 mm_logkmem(struct uio *uio) argument
135 ent->mle_vaddr = (uintptr_t)uio->uio_loffset;
136 ent->mle_len = uio->uio_resid;
287 mmio(struct uio *uio, enum uio_rw rw, pfn_t pfn, off_t pageoff, int allowio, argument
294 (size_t)uio->uio_iov->iov_len);
316 size_t c = uio->uio_iov->iov_len;
318 if (ddi_peekpokeio(NULL, uio, r
364 mmrw(dev_t dev, struct uio *uio, enum uio_rw rw, cred_t *cred) argument
489 mmread(dev_t dev, struct uio *uio, cred_t *cred) argument
495 mmwrite(dev_t dev, struct uio *uio, cred_t *cred) argument
[all...]
/illumos-gate/usr/src/uts/sun/io/
H A Dsbusmem.c57 static int sbmem_read(dev_t, struct uio *, cred_t *);
58 static int sbmem_write(dev_t, struct uio *, cred_t *);
112 static int sbmem_rw(dev_t, struct uio *, enum uio_rw, cred_t *);
319 sbmem_read(dev_t dev, struct uio *uio, cred_t *cred) argument
321 return (sbmem_rw(dev, uio, UIO_READ, cred));
325 sbmem_write(dev_t dev, struct uio *uio, cred_t *cred) argument
327 return (sbmem_rw(dev, uio, UIO_WRITE, cred));
331 sbmem_rw(dev_t dev, struct uio *ui argument
[all...]
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Duio.h27 struct uio { struct
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/
H A Dcommon.c81 uio_t uio; local
84 mdb_printf("uio\t%p\n", addr);
85 if (mdb_vread(&uio, sizeof (uio_t), (uintptr_t)addr)
87 mdb_warn("uio_prt: could not read uio");
90 for (i = 0; i < uio.uio_iovcnt; i++) {
92 (uintptr_t)(uio.uio_iov +i))
100 mdb_printf("uio_iovcnt\t%d\n", uio.uio_iovcnt);
101 mdb_printf("uio_offset\t%lld\n", uio.uio_offset);
102 mdb_printf("uio_segflg\t%s", segstrings[uio.uio_segflg]);
103 mdb_printf("uio_fmode\t0%o", (int)uio
[all...]
/illumos-gate/usr/src/uts/sun4u/excalibur/os/
H A Dexcalibur.c261 struct uio uio; local
269 bzero(&uio, sizeof (uio));
273 uio.uio_iov = &iov;
274 uio.uio_iovcnt = 1;
275 uio.uio_loffset = 0;
276 uio.uio_segflg = UIO_SYSSPACE;
277 uio.uio_resid = sizeof (fv);
279 err = ldi_write(xcalfans[i].lh, &uio, kcre
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_aapl.c215 uio_t uio; local
218 bzero(&uio, sizeof (uio));
222 uio.uio_iov = &iov;
223 uio.uio_iovcnt = 1;
224 uio.uio_resid = sizeof (AfpInfo);
225 uio.uio_segflg = UIO_SYSSPACE;
226 uio.uio_extflg = UIO_COPY_DEFAULT;
227 rc = smb_fsop_read(sr, kcr, snode, NULL, &uio, 0);
228 if (rc == 0 && uio
[all...]
H A Dsmb_net.c154 smb_net_send_uio(smb_session_t *s, struct uio *uio) argument
181 msg.msg_iov = uio->uio_iov;
182 msg.msg_iovlen = uio->uio_iovcnt;
183 while (uio->uio_resid > 0) {
187 uio->uio_resid -= sent;
H A Dsmb2_fsctl_sparse.c301 uio_t uio; local
371 bzero(&uio, sizeof (uio));
372 uio.uio_iov = &iov;
373 uio.uio_iovcnt = 1;
374 uio.uio_resid = tsize;
375 uio.uio_loffset = src_off;
376 uio.uio_segflg = UIO_SYSSPACE;
377 uio.uio_extflg = UIO_COPY_DEFAULT;
380 src_ofile->f_node, src_ofile, &uio,
[all...]
/illumos-gate/usr/src/uts/i86xpv/io/
H A Ddomcaps.c104 domcaps_read(dev_t dev, uio_t *uio, cred_t *cr) argument
110 if (uio->uio_loffset > sizeof (data))
112 nbytes = MIN(uio->uio_resid, sizeof (data) - uio->uio_loffset);
114 return (uiomove(data + uio->uio_loffset, nbytes,
115 UIO_READ, uio));
/illumos-gate/usr/src/uts/common/sys/usb/usba/
H A Dusba_ugen.h56 int usb_ugen_read(usb_ugen_hdl_t, dev_t, struct uio *, cred_t *);
57 int usb_ugen_write(usb_ugen_hdl_t, dev_t, struct uio *, cred_t *);
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dreadv.c4 #include <sys/uio.h>
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c53 #include <sys/uio.h>
350 uio_t *uio = arg_uio; local
351 rlim64_t limit = uio->uio_llimit;
388 uoff = uio->uio_loffset;
389 resid = uio->uio_resid;
437 iov = uio->uio_iov;
438 nbytes = uio->uio_iovcnt;
442 copy_resid = uio->uio_resid;
452 copy_uio.uio_loffset = uio->uio_loffset;
453 copy_uio.uio_resid = uio
787 directio_hole(struct uio *uio, size_t nbytes) argument
816 ufs_directio_read(struct inode *ip, uio_t *uio, cred_t *cr, int *statusp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c509 read_symtab(void *addr, size_t size, off_t offset, uio_t *uio) argument
535 sizeof (sym) - partial, UIO_READ, uio)) != 0 ||
536 uio->uio_resid <= 0)
552 uio)) != 0 || uio->uio_resid <= 0)
561 objfs_data_read(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr, argument
581 if (uio->uio_resid <= 0 || uio->uio_offset >= data_size(mp))
598 if (uio->uio_loffset < SECTION_OFFSET(0)) {
655 if ((error = uiomove((char *)&ehdr + uio
[all...]

Completed in 215 milliseconds

1234567891011>>