Loading drivers/staging/hv/ChannelMgmt.c +5 −14 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ static VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCoun Allocate and initialize a vmbus channel object --*/ static VMBUS_CHANNEL* AllocVmbusChannel(void) VMBUS_CHANNEL* AllocVmbusChannel(void) { VMBUS_CHANNEL* channel; Loading Loading @@ -189,7 +189,7 @@ static inline void ReleaseVmbusChannel(void* Context) Release the resources used by the vmbus channel object --*/ static void FreeVmbusChannel(VMBUS_CHANNEL* Channel) void FreeVmbusChannel(VMBUS_CHANNEL* Channel) { del_timer(&Channel->poll_timer); Loading Loading @@ -665,10 +665,7 @@ VmbusChannelOnVersionResponse( This is invoked in the vmbus worker thread context. --*/ static void VmbusOnChannelMessage( void *Context ) void VmbusOnChannelMessage(void *Context) { HV_MESSAGE *msg=(HV_MESSAGE*)Context; VMBUS_CHANNEL_MESSAGE_HEADER* hdr; Loading Loading @@ -714,10 +711,7 @@ VmbusOnChannelMessage( Send a request to get all our pending offers. --*/ static int VmbusChannelRequestOffers( void ) int VmbusChannelRequestOffers(void) { int ret=0; VMBUS_CHANNEL_MESSAGE_HEADER* msg; Loading Loading @@ -776,10 +770,7 @@ VmbusChannelRequestOffers( Release channels that are unattached/unconnected ie (no drivers associated) --*/ static void VmbusChannelReleaseUnattachedChannels( void ) void VmbusChannelReleaseUnattachedChannels(void) { LIST_ENTRY *entry; VMBUS_CHANNEL *channel; Loading drivers/staging/hv/ChannelMgmt.h +49 −63 Original line number Diff line number Diff line Loading @@ -52,7 +52,10 @@ typedef struct _VMBUS_CHANNEL { VMBUS_CHANNEL_STATE State; VMBUS_CHANNEL_OFFER_CHANNEL OfferMsg; /* These are based on the OfferMsg.MonitorId. Save it here for easy access. */ /* * These are based on the OfferMsg.MonitorId. * Save it here for easy access. */ u8 MonitorGroup; u8 MonitorBit; Loading @@ -71,7 +74,6 @@ typedef struct _VMBUS_CHANNEL { PFN_CHANNEL_CALLBACK OnChannelCallback; void *ChannelCallbackContext; } VMBUS_CHANNEL; Loading Loading @@ -106,7 +108,6 @@ typedef union { * Represents each channel msg on the vmbus connection This is a * variable-size data structure depending on the msg type itself */ typedef struct _VMBUS_CHANNEL_MSGINFO { /* Bookkeeping stuff */ LIST_ENTRY MsgListEntry; Loading @@ -120,37 +121,22 @@ typedef struct _VMBUS_CHANNEL_MSGINFO { VMBUS_CHANNEL_MESSAGE_RESPONSE Response; u32 MessageSize; /* The channel message that goes out on the "wire". */ /* It will contain at minimum the VMBUS_CHANNEL_MESSAGE_HEADER header */ /* * The channel message that goes out on the "wire". * It will contain at minimum the VMBUS_CHANNEL_MESSAGE_HEADER header */ unsigned char Msg[0]; } VMBUS_CHANNEL_MSGINFO; /* Routines */ static VMBUS_CHANNEL* AllocVmbusChannel( void ); VMBUS_CHANNEL *AllocVmbusChannel(void); static void FreeVmbusChannel( VMBUS_CHANNEL *Channel ); void FreeVmbusChannel(VMBUS_CHANNEL *Channel); static void VmbusOnChannelMessage( void *Context ); void VmbusOnChannelMessage(void *Context); static int VmbusChannelRequestOffers( void ); int VmbusChannelRequestOffers(void); static void VmbusChannelReleaseUnattachedChannels( void ); void VmbusChannelReleaseUnattachedChannels(void); #endif /* _CHANNEL_MGMT_H_ */ Loading
drivers/staging/hv/ChannelMgmt.c +5 −14 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ static VMBUS_CHANNEL_MESSAGE_TABLE_ENTRY gChannelMessageTable[ChannelMessageCoun Allocate and initialize a vmbus channel object --*/ static VMBUS_CHANNEL* AllocVmbusChannel(void) VMBUS_CHANNEL* AllocVmbusChannel(void) { VMBUS_CHANNEL* channel; Loading Loading @@ -189,7 +189,7 @@ static inline void ReleaseVmbusChannel(void* Context) Release the resources used by the vmbus channel object --*/ static void FreeVmbusChannel(VMBUS_CHANNEL* Channel) void FreeVmbusChannel(VMBUS_CHANNEL* Channel) { del_timer(&Channel->poll_timer); Loading Loading @@ -665,10 +665,7 @@ VmbusChannelOnVersionResponse( This is invoked in the vmbus worker thread context. --*/ static void VmbusOnChannelMessage( void *Context ) void VmbusOnChannelMessage(void *Context) { HV_MESSAGE *msg=(HV_MESSAGE*)Context; VMBUS_CHANNEL_MESSAGE_HEADER* hdr; Loading Loading @@ -714,10 +711,7 @@ VmbusOnChannelMessage( Send a request to get all our pending offers. --*/ static int VmbusChannelRequestOffers( void ) int VmbusChannelRequestOffers(void) { int ret=0; VMBUS_CHANNEL_MESSAGE_HEADER* msg; Loading Loading @@ -776,10 +770,7 @@ VmbusChannelRequestOffers( Release channels that are unattached/unconnected ie (no drivers associated) --*/ static void VmbusChannelReleaseUnattachedChannels( void ) void VmbusChannelReleaseUnattachedChannels(void) { LIST_ENTRY *entry; VMBUS_CHANNEL *channel; Loading
drivers/staging/hv/ChannelMgmt.h +49 −63 Original line number Diff line number Diff line Loading @@ -52,7 +52,10 @@ typedef struct _VMBUS_CHANNEL { VMBUS_CHANNEL_STATE State; VMBUS_CHANNEL_OFFER_CHANNEL OfferMsg; /* These are based on the OfferMsg.MonitorId. Save it here for easy access. */ /* * These are based on the OfferMsg.MonitorId. * Save it here for easy access. */ u8 MonitorGroup; u8 MonitorBit; Loading @@ -71,7 +74,6 @@ typedef struct _VMBUS_CHANNEL { PFN_CHANNEL_CALLBACK OnChannelCallback; void *ChannelCallbackContext; } VMBUS_CHANNEL; Loading Loading @@ -106,7 +108,6 @@ typedef union { * Represents each channel msg on the vmbus connection This is a * variable-size data structure depending on the msg type itself */ typedef struct _VMBUS_CHANNEL_MSGINFO { /* Bookkeeping stuff */ LIST_ENTRY MsgListEntry; Loading @@ -120,37 +121,22 @@ typedef struct _VMBUS_CHANNEL_MSGINFO { VMBUS_CHANNEL_MESSAGE_RESPONSE Response; u32 MessageSize; /* The channel message that goes out on the "wire". */ /* It will contain at minimum the VMBUS_CHANNEL_MESSAGE_HEADER header */ /* * The channel message that goes out on the "wire". * It will contain at minimum the VMBUS_CHANNEL_MESSAGE_HEADER header */ unsigned char Msg[0]; } VMBUS_CHANNEL_MSGINFO; /* Routines */ static VMBUS_CHANNEL* AllocVmbusChannel( void ); VMBUS_CHANNEL *AllocVmbusChannel(void); static void FreeVmbusChannel( VMBUS_CHANNEL *Channel ); void FreeVmbusChannel(VMBUS_CHANNEL *Channel); static void VmbusOnChannelMessage( void *Context ); void VmbusOnChannelMessage(void *Context); static int VmbusChannelRequestOffers( void ); int VmbusChannelRequestOffers(void); static void VmbusChannelReleaseUnattachedChannels( void ); void VmbusChannelReleaseUnattachedChannels(void); #endif /* _CHANNEL_MGMT_H_ */