Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vmbus_drv.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/sysctl.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <acpi/acpi_bus.h>
#include <linux/completion.h>
#include <linux/hyperv.h>
#include <asm/hyperv.h>
#include <asm/hypervisor.h>
#include "hyperv_vmbus.h"

Go to the source code of this file.

Data Structures

struct  hv_device_info
 
struct  onmessage_work_context
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define VMBUS_ALIAS_LEN   ((sizeof((struct hv_vmbus_device_id *)0)->guid) * 2)
 

Functions

int __vmbus_driver_register (struct hv_driver *hv_driver, struct module *owner, const char *mod_name)
 
 EXPORT_SYMBOL_GPL (__vmbus_driver_register)
 
void vmbus_driver_unregister (struct hv_driver *hv_driver)
 
 EXPORT_SYMBOL_GPL (vmbus_driver_unregister)
 
struct hv_device * vmbus_device_create (uuid_le *type, uuid_le *instance, struct vmbus_channel *channel)
 
int vmbus_device_register (struct hv_device *child_device_obj)
 
void vmbus_device_unregister (struct hv_device *device_obj)
 
 MODULE_DEVICE_TABLE (acpi, vmbus_acpi_device_ids)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (HV_DRV_VERSION)
 
 subsys_initcall (hv_acpi_init)
 
 module_exit (vmbus_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file vmbus_drv.c.

#define VMBUS_ALIAS_LEN   ((sizeof((struct hv_vmbus_device_id *)0)->guid) * 2)

Definition at line 120 of file vmbus_drv.c.

Function Documentation

int __vmbus_driver_register ( struct hv_driver *  hv_driver,
struct module owner,
const char mod_name 
)

__vmbus_child_driver_register - Register a vmbus's driver : Pointer to driver structure you want to register : owner module of the drv : module name string

Registers the given driver with Linux through the 'driver_register()' call and sets up the hyper-v vmbus handling for this driver. It will return the state of the 'driver_register()' call.

Definition at line 561 of file vmbus_drv.c.

EXPORT_SYMBOL_GPL ( __vmbus_driver_register  )
EXPORT_SYMBOL_GPL ( vmbus_driver_unregister  )
MODULE_DEVICE_TABLE ( acpi  ,
vmbus_acpi_device_ids   
)
module_exit ( vmbus_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( HV_DRV_VERSION  )
subsys_initcall ( hv_acpi_init  )
struct hv_device* vmbus_device_create ( uuid_le type,
uuid_le instance,
struct vmbus_channel *  channel 
)
read

Definition at line 604 of file vmbus_drv.c.

int vmbus_device_register ( struct hv_device *  child_device_obj)

Definition at line 628 of file vmbus_drv.c.

void vmbus_device_unregister ( struct hv_device *  device_obj)

Definition at line 660 of file vmbus_drv.c.

void vmbus_driver_unregister ( struct hv_driver *  hv_driver)

vmbus_driver_unregister() - Unregister a vmbus's driver : Pointer to driver structure you want to un-register

Un-register the given driver that was previous registered with a call to vmbus_driver_register()

Definition at line 591 of file vmbus_drv.c.