Displaying 1 result from an estimated 1 matches for "network_op_t".
2003 Dec 09
2
modules and hypercall
...visor-ifs/hypervisor-if.h>
#include <hypervisor-ifs/network.h>
/**
* init_xvifgetinfo() - this function is called when module is loaded
*
* Description: We try to get information concerning the vif #1
* in domain #0
*/
static int __init init_xvifgetinfo(void)
{
network_op_t netop;
long res;
printk(KERN_INFO "init_xvifgetinfo: Loaded\n");
netop.cmd = NETWORK_OP_VIFGETINFO;
netop.u.vif_getinfo.domain = 0;
netop.u.vif_getinfo.vif = 1;
res = HYPERVISOR_network_op(&netop);
if (res < 0) {...