FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
vmbus.c File Reference
+ Include dependency graph for vmbus.c:

Go to the source code of this file.

Data Structures

struct  linux_vmbus_region_t
 
struct  linux_vmbus_irq_t
 
struct  linux_vmbus_device_t
 
struct  linux_vmbus_main_t
 

Functions

static linux_vmbus_device_tlinux_vmbus_get_device (vlib_vmbus_dev_handle_t h)
 
uword vlib_vmbus_get_private_data (vlib_vmbus_dev_handle_t h)
 
void vlib_vmbus_set_private_data (vlib_vmbus_dev_handle_t h, uword private_data)
 
vlib_vmbus_addr_tvlib_vmbus_get_addr (vlib_vmbus_dev_handle_t h)
 
clib_error_tvmbus_bus_init (vlib_main_t *vm)
 
static uword unformat_vlib_vmbus_addr (unformat_input_t *input, va_list *args)
 
static u8format_vlib_vmbus_addr (u8 *s, va_list *va)
 
static clib_error_tvlib_vmbus_raise_lower (int fd, const char *upper_name)
 
static int directory_exists (char *path)
 
clib_error_tvlib_vmbus_bind_to_uio (vlib_vmbus_addr_t *addr)
 
static clib_error_tscan_vmbus_addr (void *arg, u8 *dev_dir_name, u8 *ignored)
 
static int vmbus_addr_cmp (void *v1, void *v2)
 
vlib_vmbus_addr_tvlib_vmbus_get_all_dev_addrs ()
 
clib_error_tlinux_vmbus_init (vlib_main_t *vm)
 

Variables

static const char sysfs_vmbus_dev_path [] = "/sys/bus/vmbus/devices"
 
static const char sysfs_vmbus_drv_path [] = "/sys/bus/vmbus/drivers"
 
static const char sysfs_class_net_path [] = "/sys/class/net"
 
static const char uio_drv_name [] = "uio_hv_generic"
 
static const char netvsc_uuid [] = "f8615163-df3e-46c5-913f-f2d2f965ed0e"
 
linux_vmbus_main_t linux_vmbus_main
 

Function Documentation

static int directory_exists ( char *  path)
static

Definition at line 203 of file vmbus.c.

+ Here is the caller graph for this function:

static u8* format_vlib_vmbus_addr ( u8 s,
va_list *  va 
)
static

Definition at line 141 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static linux_vmbus_device_t* linux_vmbus_get_device ( vlib_vmbus_dev_handle_t  h)
static

Definition at line 82 of file vmbus.c.

+ Here is the caller graph for this function:

clib_error_t* linux_vmbus_init ( vlib_main_t vm)

Definition at line 404 of file vmbus.c.

+ Here is the call graph for this function:

static clib_error_t* scan_vmbus_addr ( void *  arg,
u8 dev_dir_name,
u8 ignored 
)
static

Definition at line 352 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword unformat_vlib_vmbus_addr ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 122 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_vmbus_bind_to_uio ( vlib_vmbus_addr_t addr)

Definition at line 213 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vlib_vmbus_addr_t* vlib_vmbus_get_addr ( vlib_vmbus_dev_handle_t  h)

Definition at line 103 of file vmbus.c.

+ Here is the call graph for this function:

vlib_vmbus_addr_t* vlib_vmbus_get_all_dev_addrs ( )

Definition at line 384 of file vmbus.c.

+ Here is the caller graph for this function:

uword vlib_vmbus_get_private_data ( vlib_vmbus_dev_handle_t  h)

Definition at line 89 of file vmbus.c.

+ Here is the call graph for this function:

static clib_error_t* vlib_vmbus_raise_lower ( int  fd,
const char *  upper_name 
)
static

Definition at line 152 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_vmbus_set_private_data ( vlib_vmbus_dev_handle_t  h,
uword  private_data 
)

Definition at line 96 of file vmbus.c.

+ Here is the call graph for this function:

static int vmbus_addr_cmp ( void *  v1,
void *  v2 
)
static

Definition at line 375 of file vmbus.c.

+ Here is the caller graph for this function:

clib_error_t* vmbus_bus_init ( vlib_main_t vm)

Definition at line 35 of file vmbus.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

linux_vmbus_main_t linux_vmbus_main

Definition at line 79 of file vmbus.c.

const char netvsc_uuid[] = "f8615163-df3e-46c5-913f-f2d2f965ed0e"
static

Definition at line 40 of file vmbus.c.

const char sysfs_class_net_path[] = "/sys/class/net"
static

Definition at line 38 of file vmbus.c.

const char sysfs_vmbus_dev_path[] = "/sys/bus/vmbus/devices"
static

Definition at line 36 of file vmbus.c.

const char sysfs_vmbus_drv_path[] = "/sys/bus/vmbus/drivers"
static

Definition at line 37 of file vmbus.c.

const char uio_drv_name[] = "uio_hv_generic"
static

Definition at line 39 of file vmbus.c.