bimodal blkfront: Create a new node "protocol" in xenstore, add the

protocol name it speaks there.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-23 14:48:42 +00:00
1 parent c82ff605c7
commit 7606be28a6
1 file changed
+7
@@ -44,6 +44,7 @@
#include <xen/evtchn.h>
#include <xen/xenbus.h>
#include <xen/interface/grant_table.h>
#include <xen/interface/io/protocols.h>
#include <xen/gnttab.h>
#include <asm/hypervisor.h>
#include <asm/maddr.h>
@@ -180,6 +181,12 @@ again:
message = "writing event-channel";
goto abort_transaction;
}
err = xenbus_printf(xbt, dev->nodename, "protocol", "%s",
XEN_IO_PROTO_ABI_NATIVE);
if (err) {
message = "writing protocol";
goto abort_transaction;
}
err = xenbus_transaction_end(xbt, 0);
if (err) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.