tools/libs/evtchn: Deduplicate xenevtchn_fd()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Jan 2022 12:29:05 +0000 (12:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Jan 2022 10:49:05 +0000 (10:49 +0000)
commit2e8aa1663c76a189998bf51b869b9e468c992c89
tree47610e12612c3672772a71521413b08fbbae87c6
parent0cf6521ea95dd78accf1e5c13cbfe8156b3611d0
tools/libs/evtchn: Deduplicate xenevtchn_fd()

struct xenevtchn_handle is common in private.h, meaning that xenevtchn_fd()
has exactly one correct implementation.

Implement it in core.c, rather than identically for each OS.  This matches all
other libraries (call, gnttab, gntshr) which implement an fd getter.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
tools/libs/evtchn/core.c
tools/libs/evtchn/freebsd.c
tools/libs/evtchn/linux.c
tools/libs/evtchn/minios.c
tools/libs/evtchn/netbsd.c
tools/libs/evtchn/solaris.c