Home
last modified time | relevance | path

Searched full:aio (Results 1 – 25 of 122) sorted by relevance

12345

/freebsd/tests/sys/aio/
H A Daio_test.c28 * Regression test to do some very basic AIO exercising on several types of
30 * size buffer with pseudo-random data, writing it to one fd using AIO, then
31 * reading it from a second descriptor using AIO. For some targets, the same
49 #include <aio.h>
80 * A completion function will block until the aio has completed, then return
81 * the result of the aio. errno will be set appropriately.
155 poll(struct aiocb *aio) in poll() argument
159 while ((error = aio_error(aio)) == EINPROGRESS) in poll()
164 return (aio_return(aio)); in poll()
180 poll_signaled(struct aiocb *aio) in poll_signaled() argument
[all …]
H A Dlocal.h40 static const char *sysctl_oid_name = "vfs.aio.enable_unsafe";
63 atf_tc_skip("Unsafe AIO is disabled"); \
66 printf("Unsafe AIO is enabled\n"); \
78 printf("Unsafe AIO is disabled\n"); \
82 printf("Unsafe AIO is enabled\n"); \
H A Daio_kqueue_test.c28 * - AIO support must be compiled into the kernel (see sys/<arch>/NOTES for
39 #include <aio.h>
51 #define PATH_TEMPLATE "aio.XXXXXXXXXX"
73 PLAIN_REQUIRE_KERNEL_MODULE("aio", 0); in main()
77 if (sysctlbyname("vfs.aio.max_aio_queue_per_proc", in main()
H A Dlio_kqueue_test.c34 #include <aio.h>
46 #define PATH_TEMPLATE "aio.XXXXXXXXXX"
71 PLAIN_REQUIRE_KERNEL_MODULE("aio", 0); in main()
75 if (sysctlbyname("vfs.aio.max_aio_queue_per_proc", in main()
/freebsd/share/man/man4/
H A Daio.432 .Nm aio
52 .Va vfs.aio.enable_unsafe
63 (also known as AIO daemons)
72 One pool of AIO daemons is used to service asynchronous I/O requests for
78 .It Va kern.ipc.aio.num_procs
80 .It Va kern.ipc.aio.target_procs
82 .It Va kern.ipc.aio.max_procs
84 .It Va kern.ipc.aio.lifetime
91 A second pool of AIO daemons is used to service all other asynchronous I/O
97 .It Va vfs.aio.num_aio_procs
[all …]
H A Dsnd_hdspe.458 RME HDSPe AIO (optional AO4S-192 and AI4S-192 extension boards)
87 .It HDSPe AIO Ta " 20 | 18" Ta " 16 | 14" Ta " 14 | 12"
135 The following tunables are applicable to HDSPe AIO devices only:
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Dsocionext,uniphier-aio.yaml4 $id: http://devicetree.org/schemas/sound/socionext,uniphier-aio.yaml#
7 title: UniPhier AIO audio system
18 - socionext,uniphier-ld11-aio
19 - socionext,uniphier-ld20-aio
20 - socionext,uniphier-pxs2-aio
29 const: aio
35 const: aio
55 ld11-aio,ld20-aio:
65 pxs2-aio:
91 compatible = "socionext,uniphier-ld20-aio";
[all …]
H A Duniphier,aio.txt8 "socionext,uniphier-ld11-aio"
9 "socionext,uniphier-ld20-aio"
10 "socionext,uniphier-pxs2-aio"
16 "aio"
20 "aio"
33 compatible = "socionext,uniphier-ld20-aio";
38 clock-names = "aio";
40 reset-names = "aio";
/freebsd/crypto/openssl/engines/
H A De_afalg.c74 static int afalg_init_aio(afalg_aio *aio);
185 static int afalg_setup_async_event_notification(afalg_aio *aio) in afalg_setup_async_event_notification() argument
201 &aio->efd, &custom); in afalg_setup_async_event_notification()
205 * and set it. efd will be signaled when AIO operation completes in afalg_setup_async_event_notification()
207 aio->efd = eventfd(0); in afalg_setup_async_event_notification()
208 if (aio->efd == -1) { in afalg_setup_async_event_notification()
216 aio->efd, custom, in afalg_setup_async_event_notification()
220 close(aio->efd); in afalg_setup_async_event_notification()
224 if (fcntl(aio->efd, F_SETFL, O_NONBLOCK) != 0) { in afalg_setup_async_event_notification()
229 aio->mode = MODE_ASYNC; in afalg_setup_async_event_notification()
[all …]
/freebsd/lib/libc/net/
H A Dname6.c642 struct hp_order *aio; in _hpreorder() local
672 if ((aio = malloc(sizeof(*aio) * n)) == NULL) in _hpreorder()
674 memset(aio, 0, sizeof(*aio) * n); in _hpreorder()
680 free(aio); in _hpreorder()
686 aio[i].aio_h_addr = ap; in _hpreorder()
687 sa = &aio[i].aio_sa; in _hpreorder()
711 aio[i].aio_dstscope = gai_addr2scopetype(sa); in _hpreorder()
712 aio[i].aio_dstpolicy = match_addrselectpolicy(sa, &policyhead); in _hpreorder()
713 set_source(&aio[i], &policyhead); in _hpreorder()
714 aio[i].aio_initial_sequence = i; in _hpreorder()
[all …]
H A Dgetaddrinfo.c677 struct ai_order *aio; in reorder() local
692 if ((aio = calloc(n, sizeof(*aio))) == NULL) in reorder()
699 free(aio); in reorder()
704 aio[i].aio_ai = ai; in reorder()
705 aio[i].aio_dstscope = gai_addr2scopetype(ai->ai_addr); in reorder()
706 aio[i].aio_dstpolicy = match_addrselectpolicy(ai->ai_addr, in reorder()
708 set_source(&aio[i], &policyhead); in reorder()
709 aio[i].aio_initial_sequence = i; in reorder()
713 qsort(aio, n, sizeof(*aio), comp_dst); in reorder()
717 *aip = aio[i].aio_ai; in reorder()
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_request.c29 /* Change this if need to debug why AIO is not being used */
287 * aio request structures.
334 /*Subroutine used to populate AIO IUs. */
405 /*Subroutine used to show standard AIO IU fields */
411 DBG_INFO("AIO IU Content, tag# 0x%08x", rcb->tag); in pqisrc_show_aio_common()
448 /*Subroutine used to populate AIO RAID 1 write bypass IU. */
523 /*Subroutine used to show AIO RAID1 Write bypass IU fields */
530 DBG_INFO("AIO RAID1 Write IU Content, tag# 0x%08x", rcb->tag); in pqisrc_show_aio_R1_write()
570 /*Subroutine used to populate AIO Raid5 or 6 write bypass IU */
675 /*Subroutine used to show AIO RAID5/6 Write bypass IU fields */
[all …]
H A Dsmartpqi_response.c106 * Process the AIO/RAID IO in the case of success.
191 /* dumps the aio error info and sense data then breaks down the output */
196 DBG_NOTE("aio err: status=0x%x serv_resp=0x%x data_pres=0x%x data_len=0x%x\n", in pqisrc_show_aio_error_info()
199 pqisrc_print_buffer(softs, "aio err info", aio_err, in pqisrc_show_aio_error_info()
257 /* Seeing a lot of invalid field in CDB for REPORT LUNs on AIO path. in pqisrc_is_innocuous_error()
291 * Process the error info for AIO in the case of failure.
317 "aio error", err_info); in pqisrc_process_aio_response_error()
/freebsd/tools/regression/aio/aiop/
H A Daiop.c46 #include <aio.h>
59 * This is a bit of a quick hack to do parallel IO testing through POSIX AIO.
125 struct aiocb *aio; in main() local
153 errx(1, "AIO concurrency must be >0"); in main()
190 aio = calloc(aio_len, sizeof(struct aiocb)); in main()
200 set_aio(aio + i, choose_aio(iowhat), fd, offset, io_size, abuf[i]); in main()
205 n = a - aio; in main()
210 set_aio(aio + n, choose_aio(iowhat), fd, offset, io_size, abuf[n]); in main()
/freebsd/share/examples/scsi_target/
H A Dscsi_target.c43 #include <aio.h>
262 struct aiocb aio, *aiop; in main() local
265 /* See if we have we have working AIO support */ in main()
266 memset(&aio, 0, sizeof(aio)); in main()
268 aio.aio_buf = aio_buf; in main()
269 if (aio.aio_buf == NULL) in main()
271 aio.aio_fildes = file_fd; in main()
272 aio.aio_offset = 0; in main()
273 aio.aio_nbytes = sector_size; in main()
275 if (aio_read(&aio) != 0) { in main()
[all …]
H A Dscsi_target.h41 /* kqueue for AIO, signals */
61 /* List of completed AIO/CTIOs */
76 struct aiocb aiocb; /* AIO descriptor for this CTIO */
/freebsd/sys/kern/
H A Dvfs_aio.c20 * This file contains support for the POSIX 1003.1B AIO/LIO facility.
72 #include <sys/aio.h>
95 FEATURE(aio, "Asynchronous I/O");
98 static MALLOC_DEFINE(M_LIO, "lio", "listio aio control block list");
99 static MALLOC_DEFINE(M_AIO, "aio", "structures for asynchronous I/O");
101 static SYSCTL_NODE(_vfs, OID_AUTO, aio, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
122 * The code will adjust the actual number of AIO processes towards this
132 "Maximum number of aio requests to queue, globally");
136 "Number of queued aio requests");
140 "Number of aio requests presently handled by the buf subsystem");
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_queue.c597 vdev_queue_agg_io_done(zio_t *aio) in vdev_queue_agg_io_done() argument
599 abd_free(aio->io_abd); in vdev_queue_agg_io_done()
622 zio_t *first, *last, *aio, *dio, *mandatory, *nio; in vdev_queue_aggregate() local
775 aio = zio_vdev_delegated_io(first->io_vd, first->io_offset, in vdev_queue_aggregate()
778 aio->io_timestamp = first->io_timestamp; in vdev_queue_aggregate()
786 zio_add_child(dio, aio); in vdev_queue_aggregate()
795 abd_gang_add(aio->io_abd, abd, B_TRUE); in vdev_queue_aggregate()
802 abd_gang_add(aio->io_abd, abd, B_TRUE); in vdev_queue_aggregate()
808 abd_gang_add(aio->io_abd, in vdev_queue_aggregate()
817 abd_gang_add(aio->io_abd, dio->io_abd, in vdev_queue_aggregate()
[all …]
/freebsd/crypto/heimdal/kcm/
H A Dsessions.c63 auditinfo_addr_t aio; in kcm_session_setup_handler()
66 if (au_sdev_read_aia(h, &event, &aio) != 0) in kcm_session_setup_handler()
78 kcm_cache_remove_session(aio.ai_asid); in kcm_session_setup_handler()
/freebsd/lib/libsys/
H A Daio_mlock.262 .Xr aio 4
70 .Xr aio 4 .
122 .Xr aio 4
/freebsd/sys/contrib/openzfs/config/
H A Duser-aio.h.m42 dnl # POSIX specifies <aio.h> as part of realtime extensions,
6 ZFS_AC_FIND_SYSTEM_LIBRARY(AIO_H, [], [aio.h], [], [rt], [lio_listio])
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DGsymReader.h251 ArrayRef<T> AIO = getAddrOffsets<T>();
252 if (Index < AIO.size())
253 return AIO[Index] + Hdr->BaseAddress;
268 ArrayRef<T> AIO = getAddrOffsets<T>(); in getAddressOffsetIndex()
269 const auto Begin = AIO.begin(); in getAddressOffsetIndex()
270 const auto End = AIO.end(); in getAddressOffsetIndex()
242 ArrayRef<T> AIO = getAddrOffsets<T>(); addressForIndex() local
259 ArrayRef<T> AIO = getAddrOffsets<T>(); getAddressOffsetIndex() local
/freebsd/tests/sys/file/
H A Dpath_test.c49 #include <aio.h>
135 /* Basic tests to verify that AIO operations fail. */
139 struct aiocb aio; in ATF_TC_BODY() local
148 memset(&aio, 0, sizeof(aio)); in ATF_TC_BODY()
149 aio.aio_buf = buf; in ATF_TC_BODY()
150 aio.aio_nbytes = sizeof(buf); in ATF_TC_BODY()
151 aio.aio_fildes = pathfd; in ATF_TC_BODY()
152 aio.aio_offset = 0; in ATF_TC_BODY()
154 ATF_REQUIRE_ERRNO(EBADF, aio_read(&aio) == -1); in ATF_TC_BODY()
155 ATF_REQUIRE_ERRNO(EBADF, aio_write(&aio) == -1); in ATF_TC_BODY()
[all …]
/freebsd/tools/tools/nanobsd/pcengines/
H A Dtest.sh32 kldstat -n aio || kldload aio
/freebsd/sys/sys/
H A Dsockbuf.h44 #define SB_AIO 0x80 /* AIO operations queued */
50 #define SB_AIO_RUNNING 0x2000 /* AIO operation running */
79 * APIs like select(2), kevent(2) or AIO and thus are shared between different
102 TAILQ_HEAD(, kaiocb) sb_aiojobq; /* pending AIO ops */
103 struct task sb_aiotask; /* AIO task */

12345