Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
channel_mgmt.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/completion.h>
#include <linux/hyperv.h>
#include "hyperv_vmbus.h"

Go to the source code of this file.

Data Structures

struct  vmbus_channel_message_table_entry
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

void vmbus_prep_negotiate_resp (struct icmsg_hdr *icmsghdrp, struct icmsg_negotiate *negop, u8 *buf, int max_fw_version, int max_srv_version)
 
 EXPORT_SYMBOL_GPL (vmbus_prep_negotiate_resp)
 
void vmbus_free_channels (void)
 
void vmbus_onmessage (void *context)
 
int vmbus_request_offers (void)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file channel_mgmt.c.

Function Documentation

EXPORT_SYMBOL_GPL ( vmbus_prep_negotiate_resp  )
void vmbus_free_channels ( void  )

Definition at line 172 of file channel_mgmt.c.

void vmbus_onmessage ( void context)

Definition at line 525 of file channel_mgmt.c.

void vmbus_prep_negotiate_resp ( struct icmsg_hdr *  icmsghdrp,
struct icmsg_negotiate *  negop,
u8 buf,
int  max_fw_version,
int  max_srv_version 
)

vmbus_prep_negotiate_resp() - Create default response for Hyper-V Negotiate message : Pointer to msg header structure : Pointer to negotiate message structure : Raw buffer channel data

is of type &struct icmsg_hdr. is of type &struct icmsg_negotiate. Set up and fill in default negotiate response message.

The max_fw_version specifies the maximum framework version that we can support and max _srv_version specifies the maximum service version we can support. A special value MAX_SRV_VER can be specified to indicate that we can handle the maximum version exposed by the host.

Mainly used by Hyper-V drivers.

Definition at line 59 of file channel_mgmt.c.

int vmbus_request_offers ( void  )

Definition at line 551 of file channel_mgmt.c.