FD.io VPP  v21.06-3-gbb25fbf28
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)
 
uword unformat_vlib_vmbus_addr (unformat_input_t *input, va_list *args)
 
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

◆ directory_exists()

static int directory_exists ( char *  path)
static

Definition at line 203 of file vmbus.c.

+ Here is the caller graph for this function:

◆ format_vlib_vmbus_addr()

u8* format_vlib_vmbus_addr ( u8 s,
va_list *  va 
)

Definition at line 141 of file vmbus.c.

+ Here is the caller graph for this function:

◆ linux_vmbus_get_device()

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:

◆ linux_vmbus_init()

clib_error_t* linux_vmbus_init ( vlib_main_t vm)

Definition at line 410 of file vmbus.c.

◆ scan_vmbus_addr()

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

Definition at line 358 of file vmbus.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_vlib_vmbus_addr()

uword unformat_vlib_vmbus_addr ( unformat_input_t input,
va_list *  args 
)

Definition at line 122 of file vmbus.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_vmbus_bind_to_uio()

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_get_addr()

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_get_all_dev_addrs()

vlib_vmbus_addr_t* vlib_vmbus_get_all_dev_addrs ( )

Definition at line 390 of file vmbus.c.

+ Here is the caller graph for this function:

◆ vlib_vmbus_get_private_data()

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:

◆ vlib_vmbus_raise_lower()

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:

◆ vlib_vmbus_set_private_data()

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:

◆ vmbus_addr_cmp()

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

Definition at line 381 of file vmbus.c.

+ Here is the caller graph for this function:

◆ vmbus_bus_init()

clib_error_t* vmbus_bus_init ( vlib_main_t vm)

Definition at line 47 of file vmbus.c.

Variable Documentation

◆ linux_vmbus_main

linux_vmbus_main_t linux_vmbus_main

Definition at line 79 of file vmbus.c.

◆ netvsc_uuid

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

Definition at line 40 of file vmbus.c.

◆ sysfs_class_net_path

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

Definition at line 38 of file vmbus.c.

◆ sysfs_vmbus_dev_path

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

Definition at line 36 of file vmbus.c.

◆ sysfs_vmbus_drv_path

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

Definition at line 37 of file vmbus.c.

◆ uio_drv_name

const char uio_drv_name[] = "uio_hv_generic"
static

Definition at line 39 of file vmbus.c.