summaryrefslogtreecommitdiffstats
path: root/sys/sys/hhook.h
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2013-06-14 04:10:34 +0000
committerlstewart <lstewart@FreeBSD.org>2013-06-14 04:10:34 +0000
commit44b2ad15cd7cc2b19f041e13de57fd990cb69b9b (patch)
tree300915a3b0ed2d09d88705d658337229b8db20a2 /sys/sys/hhook.h
parentad6913810813f55aabb485f2fe6455f24045b631 (diff)
downloadFreeBSD-src-44b2ad15cd7cc2b19f041e13de57fd990cb69b9b.zip
FreeBSD-src-44b2ad15cd7cc2b19f041e13de57fd990cb69b9b.tar.gz
Add support for non-virtualised hhook points, which are uniquely identified by
type and id, as compared to virtualised hook points which are now uniquely identified by type, id and a vid (which for vimage is the pointer to the vnet that the hhook resides in). All hhook_head structs for both virtualised and non-virtualised hook points coexist in hhook_head_list, and a separate list is maintained for hhook points within each vnet to simplify some vimage-related housekeeping. Reviewed by: scottl MFC after: 1 week
Diffstat (limited to 'sys/sys/hhook.h')
-rw-r--r--sys/sys/hhook.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/hhook.h b/sys/sys/hhook.h
index d43e479..096a5a0 100644
--- a/sys/sys/hhook.h
+++ b/sys/sys/hhook.h
@@ -91,12 +91,14 @@ struct hookinfo {
struct hhook_head {
STAILQ_HEAD(hhook_list, hhook) hhh_hooks;
struct rmlock hhh_lock;
+ uintptr_t hhh_vid;
int32_t hhh_id;
int32_t hhh_nhooks;
int32_t hhh_type;
uint32_t hhh_flags;
volatile uint32_t hhh_refcount;
LIST_ENTRY(hhook_head) hhh_next;
+ LIST_ENTRY(hhook_head) hhh_vnext;
};
/* Public KPI functions. */
OpenPOWER on IntegriCloud