Searched defs:aio (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c368 vdev_queue_agg_io_done(zio_t *aio) argument
370 if (aio->io_type == ZIO_TYPE_READ) {
373 while ((pio = zio_walk_parents(aio, &zl)) != NULL) {
374 bcopy((char *)aio->io_data + (pio->io_offset -
375 aio->io_offset), pio->io_data, pio->io_size);
379 zio_buf_free(aio->io_data, aio->io_size);
509 zio_t *first, *last, *aio, *dio, *mandatory, *nio; local
613 aio = zio_vdev_delegated_io(first->io_vd, first->io_offset,
617 aio
647 zio_t *zio, *aio; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/rdc/
H A Drdc.c491 rdc_aio_t *aio; local
496 aio = mdb_zalloc(sizeof (*aio), UM_GC);
498 if (mdb_vread(aio, sizeof (*aio), addr) != sizeof (*aio)) {
503 aio->next, aio->handle, aio->qhandle);
505 " seq: %d\n", aio
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Daio_subr.c78 struct aio_req *aio)
80 struct uio *uio = aio->aio_uio;
81 aio_req_t *reqp = (aio_req_t *)aio->aio_private;
225 * mapout earlier so that more kmem is available when aio is
231 /* decrement fd's ref count by one, now that aio request is done. */
391 * If this is an old Solaris aio request, and the process has
409 * but there is a window, where it could miss to see a new aio
447 * special case handling for zero length requests. the aio request
449 * to complete this request is to copyout a zero to the aio request's
689 * cleanup aio request
72 aphysio( int (*strategy)(struct buf *), int (*cancel)(struct buf *), dev_t dev, int rw, void (*mincnt)(struct buf *), struct aio_req *aio) argument
[all...]
H A Daio.c111 static int driver_aio_write(vnode_t *vp, struct aio_req *aio, cred_t *cred_p);
112 static int driver_aio_read(vnode_t *vp, struct aio_req *aio, cred_t *cred_p);
569 /* don't block if no outstanding aio */
802 * put the aio request structure back into the free list.
1087 * initialize aio by allocating an aio_t struct for this
1107 * start a special thread that will cleanup after aio requests
1111 * SOFTLOCKed. Some pages will be SOFTLOCKed when there are aio
1786 * Write out the results for an aio request that is done.
2444 /* this is an old solaris aio request */
2453 * initialize aio reques
2850 driver_aio_write(vnode_t *vp, struct aio_req *aio, cred_t *cred_p) argument
2874 driver_aio_read(vnode_t *vp, struct aio_req *aio, cred_t *cred_p) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/
H A Dxdf_shell.c741 xdfs_aread(dev_t dev, struct aio_req *aio, cred_t *credp) argument
748 return (ldi_aread(xsp->xdfss_tgt_lh[part], aio, credp));
755 return (xdfs_hvm_cb_ops->cb_aread(dev, aio, credp));
760 xdfs_awrite(dev_t dev, struct aio_req *aio, cred_t *credp) argument
767 return (ldi_awrite(xsp->xdfss_tgt_lh[part], aio, credp));
774 return (xdfs_hvm_cb_ops->cb_awrite(dev, aio, credp));
/illumos-gate/usr/src/uts/common/sys/
H A Daio_impl.h31 #include <sys/aio.h>
80 int aio_req_fd; /* aio's file descriptor */
101 * Struct for asynchronous I/O (aio) information per process.
103 * The field will be null if no aio is used.
105 typedef struct aio { struct
115 aio_req_t *aio_free; /* freelist of aio requests */
121 kmutex_t aio_mutex; /* mutex for aio struct */
138 #define AIO_CLEANUP 0x0001 /* do aio cleanup processing */
144 #define AIO_SOLARIS_REQ 0x0040 /* an old solaris aio req was issued */
150 #define AIO_PENDING 0x0002 /* aio i
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/trans/
H A Dmdtrans.c726 md_trans_aread(dev_t dev, struct aio_req *aio, cred_t *credp) argument
730 if ((error = md_chk_uio(aio->aio_uio)) != 0)
733 return (aphysio(mdstrategy, anocancel, dev, B_READ, minphys, aio));
750 md_trans_awrite(dev_t dev, struct aio_req *aio, cred_t *credp) argument
754 if ((error = md_chk_uio(aio->aio_uio)) != 0)
757 return (aphysio(mdstrategy, anocancel, dev, B_WRITE, minphys, aio));
/illumos-gate/usr/src/cmd/sa/
H A Dsar.c339 iodevinfo_t *aio, *dio, *oio; local
504 safe_zalloc((void *)&aio, size, 0);
519 aio[i] = axio[j];
529 axio = aio;
769 iodevinfo_t *nio, *oio, *aio, *dio; local
785 aio = axio;
788 aio->kios.wlastupdate += dio->kios.wlastupdate
790 aio->kios.reads += dio->kios.reads
792 aio->kios.writes += dio->kios.writes
794 aio
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_diskq.c295 rdc_fill_ioheader(rdc_aio_t *aio, io_hdr *hd, int qpos) argument
297 ASSERT(MUTEX_HELD(&rdc_k_info[aio->index].group->diskq.disk_qlock));
301 hd->dat.pos = aio->pos;
302 hd->dat.hpos = aio->pos;
304 hd->dat.len = aio->len;
305 hd->dat.flag = aio->flag;
306 hd->dat.iostatus = aio->iostatus;
307 hd->dat.setid = rdc_idx2setid(aio->index);
309 if (!aio->handle)
920 * copy orig aio t
1014 rdc_diskq_enqueue(rdc_k_info_t *krdc, rdc_aio_t *aio) argument
1547 rdc_netqueue_insert(rdc_aio_t *aio, net_queue *q) argument
1578 rdc_fill_aio(rdc_group_t *grp, rdc_aio_t *aio, io_hdr *hdr, nsc_buf_t *abuf) argument
1643 rdc_aio_t *aio; local
1674 rdc_aio_t *aio = NULL; local
1908 rdc_aio_t *aio = NULL; local
2519 rdc_aio_t *aio; local
[all...]
H A Drdc_clnt.c991 rdc_fixlen(rdc_aio_t *aio) argument
993 nsc_vec_t *vecp = aio->qhandle->sb_vec;
1000 aio->qhandle->sb_len = len;
1013 rdc_aio_t *aio; local
1070 aio = q->net_qhead;
1071 tmpkrdc = &rdc_k_info[aio->index];
1074 aio->qhandle->sb_user--;
1075 if (aio->qhandle->sb_user == 0) {
1076 rdc_fixlen(aio);
1077 (void) nsc_free_buf(aio
1347 rdc_memq_enqueue(rdc_k_info_t *krdc, rdc_aio_t *aio) argument
1437 rdc_aio_t *aio; local
1640 rdc_aio_t *aio; local
1832 rdc_aio_t *aio = NULL; local
2039 _rdc_remote_flush(rdc_aio_t *aio) argument
2580 rdc_aio_t *aio; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/md/
H A Dmd.c1692 * The main catch is that the *aio struct which is passed to us may
1699 mdaread(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1714 (dev, aio, credp));
1716 if ((error = md_chk_uio(aio->aio_uio)) != 0)
1719 return (aphysio(mdstrategy, anocancel, dev, B_READ, md_minphys, aio));
1760 * The main catch is that the *aio struct which is passed to us may
1768 mdawrite(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1783 (dev, aio, credp));
1785 if ((error = md_chk_uio(aio->aio_uio)) != 0)
1788 return (aphysio(mdstrategy, anocancel, dev, B_WRITE, md_minphys, aio));
[all...]
/illumos-gate/usr/src/uts/intel/io/dktp/disk/
H A Dcmdk.c99 static int cmdkarw(dev_t dev, struct aio_req *aio, int flag);
130 static int cmdkaread(dev_t dev, struct aio_req *aio, cred_t *credp);
131 static int cmdkawrite(dev_t dev, struct aio_req *aio, cred_t *credp);
1230 cmdkaread(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1232 return (cmdkarw(dev, aio, B_READ));
1250 cmdkawrite(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1252 return (cmdkarw(dev, aio, B_WRITE));
1282 cmdkarw(dev_t dev, struct aio_req *aio, int flag) argument
1297 return (aphysio(cmdkstrategy, anocancel, dev, flag, cmdkmin, aio));
/illumos-gate/usr/src/uts/common/avs/ns/sv/
H A Dsv.c1490 sv_lyr_aread(dev_t dev, struct aio_req *aio, cred_t *crp) argument
1493 anocancel, dev, B_READ, minphys, aio));
1500 sv_lyr_awrite(dev_t dev, struct aio_req *aio, cred_t *crp) argument
1503 anocancel, dev, B_WRITE, minphys, aio));
/illumos-gate/usr/src/man/man3head/
H A DMakefile23 aio.h.3head \
113 aio.3head \
202 aio.3head := LINKSRC = aio.h.3head
/illumos-gate/usr/src/uts/common/io/blkdev/
H A Dblkdev.c1130 bd_aread(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1133 return (aphysio(bd_strategy, anocancel, dev, B_READ, bd_minphys, aio));
1137 bd_awrite(dev_t dev, struct aio_req *aio, cred_t *credp) argument
1140 return (aphysio(bd_strategy, anocancel, dev, B_WRITE, bd_minphys, aio));
/illumos-gate/usr/src/uts/common/io/
H A Dlofi.c1764 lofi_aread(dev_t dev, struct aio_req *aio, struct cred *credp) argument
1768 UIO_CHECK(aio->aio_uio);
1769 return (aphysio(lofi_strategy, anocancel, dev, B_READ, minphys, aio));
1774 lofi_awrite(dev_t dev, struct aio_req *aio, struct cred *credp) argument
1778 UIO_CHECK(aio->aio_uio);
1779 return (aphysio(lofi_strategy, anocancel, dev, B_WRITE, minphys, aio));
/illumos-gate/usr/src/uts/sun/io/dada/targets/
H A Ddad.c79 static int dcdaread(dev_t dev, struct aio_req *aio, cred_t *cred_p);
80 static int dcdawrite(dev_t dev, struct aio_req *aio, cred_t *cred_p);
1701 dcdaread(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
1704 struct uio *uio = aio->aio_uio;
1721 return (aphysio(dcdstrategy, anocancel, dev, B_READ, dcdmin, aio));
1751 dcdawrite(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
1754 struct uio *uio = aio->aio_uio;
1771 return (aphysio(dcdstrategy, anocancel, dev, B_WRITE, dcdmin, aio));
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdc.c117 static int vdc_aread(dev_t dev, struct aio_req *aio, cred_t *cred);
118 static int vdc_awrite(dev_t dev, struct aio_req *aio, cred_t *cred);
1587 vdc_aread(dev_t dev, struct aio_req *aio, cred_t *cred) argument
1592 return (aphysio(vdc_strategy, anocancel, dev, B_READ, vdc_min, aio));
1596 vdc_awrite(dev_t dev, struct aio_req *aio, cred_t *cred) argument
1601 return (aphysio(vdc_strategy, anocancel, dev, B_WRITE, vdc_min, aio));
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c427 static int st_aread(dev_t dev, struct aio_req *aio, cred_t *cred_p);
428 static int st_awrite(dev_t dev, struct aio_req *aio, cred_t *cred_p);
508 static int st_arw(dev_t dev, struct aio_req *aio, int flag);
3806 st_aread(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
3812 return (st_arw(dev, aio, B_READ));
3818 st_awrite(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
3824 return (st_arw(dev, aio, B_WRITE));
4014 st_arw(dev_t dev, struct aio_req *aio, int flag) argument
4016 struct uio *uio = aio->aio_uio;
4068 aphysio(st_queued_strategy, anocancel, dev, flag, st_minphys, aio);
[all...]
H A Dsd.c1314 static int sdaread(dev_t dev, struct aio_req *aio, cred_t *cred_p);
1315 static int sdawrite(dev_t dev, struct aio_req *aio, cred_t *cred_p);
11078 * aio - structure pointer describing where data is to be stored
11090 sdaread(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
11093 struct uio *uio = aio->aio_uio;
11155 err = aphysio(sdstrategy, anocancel, dev, B_READ, sdmin, aio);
11168 * aio - structure pointer describing where data is stored
11180 sdawrite(dev_t dev, struct aio_req *aio, cred_t *cred_p) argument
11183 struct uio *uio = aio->aio_uio;
11245 err = aphysio(sdstrategy, anocancel, dev, B_WRITE, sdmin, aio);
[all...]

Completed in 232 milliseconds