diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2020-12-10 12:50:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 12:50:54 +0100 |
commit | b40603643660299dd4ba0fd9521e282a0af98f81 (patch) | |
tree | f410cc58b448cbbb64d1f27dbd5ee06527c18b5f /samples/gpio-pci-idio-16.c | |
parent | becb165b321b66fa3465d0d4a6d74316044188b4 (diff) | |
download | libvfio-user-b40603643660299dd4ba0fd9521e282a0af98f81.zip libvfio-user-b40603643660299dd4ba0fd9521e282a0af98f81.tar.gz libvfio-user-b40603643660299dd4ba0fd9521e282a0af98f81.tar.bz2 |
Drop vfu_ctx_drive() and use vfu_ctx_poll() (#178)
* Drop vfu_ctx_drive() and use vfu_run_ctx()
Renamed vfu_ctx_poll() to vfu_run_ctx().
Updated vfu_run_ctx() to also handle blocking ctx.
Instead of having separate functions for blocking and
non-blocking ctx, better to have one.
This way user can call same set of functions for both cases.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r-- | samples/gpio-pci-idio-16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index a957117..da7c4c0 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -143,7 +143,7 @@ main(int argc, char *argv[]) err(EXIT_FAILURE, "failed to attach device"); } - ret = vfu_ctx_drive(vfu_ctx); + ret = vfu_run_ctx(vfu_ctx); if (ret != 0) { if (ret != -ENOTCONN && ret != -EINTR) { fprintf(stderr, "failed to realize device emulation\n"); |