tools/hotplug/NetBSD/rc.d/xendriverdomain
tools/include/acpi
tools/include/_libxl*.h
-tools/include/_xentoolcore_list.h
tools/include/xen/*
tools/include/xen-xsm/*
tools/include/xen-foreign/*.(c|h|size)
#include <stddef.h>
#include "xentoolcore.h"
-#include "_xentoolcore_list.h"
+#include "_xen_list.h"
/*---------- active handle registration ----------*/
struct Xentoolcore__Active_Handle {
Xentoolcore__Restrict_Callback *restrict_callback;
- XENTOOLCORE_LIST_ENTRY(Xentoolcore__Active_Handle) entry;
+ XEN_LIST_ENTRY(Xentoolcore__Active_Handle) entry;
};
void xentoolcore__register_active_handle(Xentoolcore__Active_Handle*);
MAJOR = 1
MINOR = 0
-AUTOINCS := $(XEN_INCLUDE)/_xentoolcore_list.h
LIBHEADER := xentoolcore.h
include $(XEN_ROOT)/tools/libs/libs.mk
PKG_CONFIG_DESC := Central support for Xen Hypervisor userland libraries
-
-$(LIB_OBJS): $(AUTOINCS)
-$(PIC_OBJS): $(AUTOINCS)
-
-$(XEN_INCLUDE)/_xentoolcore_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-seddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h
- $(PERL) $^ --prefix=xentoolcore >$(notdir $@).new
- $(call move-if-changed,$(notdir $@).new,$@)
#include <assert.h>
static pthread_mutex_t handles_lock = PTHREAD_MUTEX_INITIALIZER;
-static XENTOOLCORE_LIST_HEAD(, Xentoolcore__Active_Handle) handles;
+static XEN_LIST_HEAD(, Xentoolcore__Active_Handle) handles;
static void lock(void) {
int e = pthread_mutex_lock(&handles_lock);
void xentoolcore__register_active_handle(Xentoolcore__Active_Handle *ah) {
lock();
- XENTOOLCORE_LIST_INSERT_HEAD(&handles, ah, entry);
+ XEN_LIST_INSERT_HEAD(&handles, ah, entry);
unlock();
}
void xentoolcore__deregister_active_handle(Xentoolcore__Active_Handle *ah) {
lock();
- XENTOOLCORE_LIST_REMOVE(ah, entry);
+ XEN_LIST_REMOVE(ah, entry);
unlock();
}
Xentoolcore__Active_Handle *ah;
lock();
- XENTOOLCORE_LIST_FOREACH(ah, &handles, entry) {
+ XEN_LIST_FOREACH(ah, &handles, entry) {
r = ah->restrict_callback(ah, domid);
if (r) goto out;
}