]> xenbits.xensource.com Git - osstest/rumprun.git/commit
librumpxen_xendev: xenbus: Reorganise to split minios from rumpkernel parts
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 5 Oct 2016 15:30:59 +0000 (16:30 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 7 Oct 2016 17:39:22 +0000 (18:39 +0100)
commit1c330ae029fbc73886a77140216fed94bc0772d9
treebc7435f78a02e4524212a8b35c97e2df3d20c17e
parent3104392cc1073e1a30d9c8baf5d44a9e162e816e
librumpxen_xendev: xenbus: Reorganise to split minios from rumpkernel parts

Split the xenbus driver into two pieces, busdev.c (in the netbsd
kernel namespacve) and busdev_user.c (in the minios namespace).  They
communicate via the (somewhat ad-hoc) interface in busdev_user.h.  The
interface uses `rumpxenbus_*' names so that the two sides can call
each other.  We split the state structure up into three: a netbsd
part, a minios part, and a common part.

This is actually largely a combination of code motion and function and
type renaming.  There is little functional change from the previous
"header abuse" approach, other than some minor interface adjustments.

In much of the code `d' was used to refer to the device struct.  Now
there are three context stucts.  For now I have retained in each
function the use of `d' which producese the lowest amount of code
churn.  The compiler makes sure the types all line up right.

Later, the uses of `d' will each be changed to `dc', `du' or `dd'.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
platform/xen/librumpxen_xendev/Makefile
platform/xen/librumpxen_xendev/busdev.c
platform/xen/librumpxen_xendev/busdev_user.c [new file with mode: 0644]
platform/xen/librumpxen_xendev/busdev_user.h [new file with mode: 0644]
platform/xen/librumpxen_xendev/rumpxen_xendev.h