numam-dpdk/examples/vhost
Yuanhan Liu 9702b2b53f vhost: fix wrong usage of eventfd_t
According to eventfd man page:

    typedef uint64_t eventfd_t;

    int eventfd_read(int fd, eventfd_t *value);
    int eventfd_write(int fd, eventfd_t value);

eventfd_t is defined for the second arg(value), but not for fd.

Here I redefine those fd fields to `int' type, which also removes
the redundant (int) cast. And as the man page stated, we should
cast 1 to eventfd_t type for eventfd_write().

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-09-25 14:58:30 +02:00
..
main.c vhost: fix wrong usage of eventfd_t 2015-09-25 14:58:30 +02:00
main.h examples: no more bare metal environment 2014-11-27 13:09:59 +01:00
Makefile examples/vhost: add new example based on lib 2014-10-23 13:07:36 +02:00