Searched refs:io_ctx (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 80 io_context_t io_ctx; /* I/O Context */ variable 134 TEST(io_submit(io_ctx, 1, iocbs)); in main() 142 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 165 TEST(io_submit(io_ctx, 1, iocbs)); in main() 173 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 196 TEST(io_submit(io_ctx, 1, iocbs)); in main() 204 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 227 TEST(io_submit(io_ctx, 1, iocbs)); in main() 235 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 258 TEST(io_submit(io_ctx, 1, iocbs)); in main() [all …]
|
/third_party/mbedtls/programs/ssl/ |
D | ssl_test_common_source.c | 206 io_ctx_t *io_ctx = (io_ctx_t*) ctx; in recv_cb() local 211 ret = delayed_recv( io_ctx->net, buf, len ); in recv_cb() 213 ret = mbedtls_net_recv( io_ctx->net, buf, len ); in recv_cb() 223 if( ssl_check_record( io_ctx->ssl, buf, recv_len ) != 0 ) in recv_cb() 233 io_ctx_t *io_ctx = (io_ctx_t*) ctx; in recv_timeout_cb() local 237 ret = mbedtls_net_recv_timeout( io_ctx->net, buf, len, timeout ); in recv_timeout_cb() 247 if( ssl_check_record( io_ctx->ssl, buf, recv_len ) != 0 ) in recv_timeout_cb() 256 io_ctx_t *io_ctx = (io_ctx_t*) ctx; in send_cb() local 259 return( delayed_send( io_ctx->net, buf, len ) ); in send_cb() 261 return( mbedtls_net_send( io_ctx->net, buf, len ) ); in send_cb()
|
D | ssl_client2.c | 654 io_ctx_t io_ctx; in main() local 2014 io_ctx.ssl = &ssl; in main() 2015 io_ctx.net = &server_fd; in main() 2016 mbedtls_ssl_set_bio( &ssl, &io_ctx, send_cb, recv_cb, in main()
|
D | ssl_server2.c | 1289 io_ctx_t io_ctx; in main() local 3026 io_ctx.ssl = &ssl; in main() 3027 io_ctx.net = &client_fd; in main() 3028 mbedtls_ssl_set_bio( &ssl, &io_ctx, send_cb, recv_cb, in main()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aio-stress.c | 217 io_context_t io_ctx; member 496 nr = io_getevents(t->io_ctx, min_nr, t->num_global_events, t->events, in read_some_events() 499 nr = io_getevents(t->io_ctx, t->num_global_events, t->events, NULL); in read_some_events() 559 while (io_getevents(t->io_ctx, 1, 1, &event, NULL) > 0) { 561 while (io_getevents(t->io_ctx, 1, &event, NULL) > 0) { 763 ret = io_submit(t->io_ctx, num_ios, my_iocbs); 936 void aio_setup(io_context_t * io_ctx, int n) argument 938 int res = io_queue_init(n, io_ctx); 1123 aio_setup(&t->io_ctx, 512); 1231 io_queue_release(t->io_ctx);
|