Home
last modified time | relevance | path

Searched refs:cancel_fd (Results 1 – 2 of 2) sorted by relevance

/external/libiio/src/
Dnetwork.c77 int cancel_fd[1]; /* eventfd */ member
79 int cancel_fd[2]; /* pipe */ member
220 io_ctx->cancel_fd[0] = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); in create_cancel_fd()
221 if (io_ctx->cancel_fd[0] < 0) in create_cancel_fd()
228 close(io_ctx->cancel_fd[0]); in cleanup_cancel()
240 ret = pipe2(io_ctx->cancel_fd, O_CLOEXEC | O_NONBLOCK); in create_cancel_fd()
244 ret = pipe(io_ctx->cancel_fd); in create_cancel_fd()
247 ret = set_blocking_mode(io_ctx->cancel_fd[0], false); in create_cancel_fd()
250 ret = set_blocking_mode(io_ctx->cancel_fd[1], false); in create_cancel_fd()
256 close(io_ctx->cancel_fd[0]); in create_cancel_fd()
[all …]
Dlocal.c101 int cancel_fd; member
287 .fd = dev->pdata->cancel_fd, in device_check_ready()
932 pdata->cancel_fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); in local_open()
933 if (pdata->cancel_fd == -1) in local_open()
1002 close(pdata->cancel_fd); in local_open()
1003 pdata->cancel_fd = -1; in local_open()
1032 close(pdata->cancel_fd); in local_close()
1035 pdata->cancel_fd = -1; in local_close()
1853 ret = write(pdata->cancel_fd, &event, sizeof(event)); in local_cancel()