mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Today the file descriptor for the access of the event channel driver is being closed in case of exec(2). For the support of live update of a daemon using libxenevtchn this can be problematic, so add a way to keep that file descriptor open. Add support of a flag XENEVTCHN_NO_CLOEXEC for xenevtchn_open() which will result in _not_ setting O_CLOEXEC when opening the event channel driver node. The caller can then obtain the file descriptor via xenevtchn_fd(). Add an alternative open function xenevtchn_fdopen() which takes that file descriptor as an additional parameter. This allows to allocate a xenevtchn_handle and to associate it with that file descriptor. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Wei Liu <wl@xen.org> Reviewed-by: Julien Grall <jgrall@amazon.com>
15 lines
342 B
Makefile
15 lines
342 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
MAJOR = 1
|
|
MINOR = 2
|
|
|
|
SRCS-y += core.c
|
|
SRCS-$(CONFIG_Linux) += linux.c
|
|
SRCS-$(CONFIG_FreeBSD) += freebsd.c
|
|
SRCS-$(CONFIG_SunOS) += solaris.c
|
|
SRCS-$(CONFIG_NetBSD) += netbsd.c
|
|
SRCS-$(CONFIG_MiniOS) += minios.c
|
|
|
|
include $(XEN_ROOT)/tools/libs/libs.mk
|