TianoCore EDK2 master
Loading...
Searching...
No Matches
EventChannel.c File Reference

Go to the source code of this file.

Functions

UINT32 XenEventChannelNotify (IN XENBUS_DEVICE *Dev, IN evtchn_port_t Port)
 
UINT32 EFIAPI XenBusEventChannelAllocate (IN XENBUS_PROTOCOL *This, IN domid_t DomainId, OUT evtchn_port_t *Port)
 
UINT32 EFIAPI XenBusEventChannelNotify (IN XENBUS_PROTOCOL *This, IN evtchn_port_t Port)
 
UINT32 EFIAPI XenBusEventChannelClose (IN XENBUS_PROTOCOL *This, IN evtchn_port_t Port)
 

Detailed Description

Event Channel function implementation.

Event channel are use to notify of an event that happened in a shared structure for example.

Copyright (C) 2014, Citrix Ltd.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EventChannel.c.

Function Documentation

◆ XenBusEventChannelAllocate()

UINT32 EFIAPI XenBusEventChannelAllocate ( IN XENBUS_PROTOCOL This,
IN domid_t  DomainId,
OUT evtchn_port_t *  Port 
)

Allocate a port that can be bind from domain DomainId.

Parameters
ThisA pointer to the XENBUS_PROTOCOL.
DomainIdThe domain ID that can bind the newly allocated port.
PortA pointer to a evtchn_port_t that will contain the newly allocated port.
Return values
UINT32The return value from the hypercall, 0 if success.

Definition at line 32 of file EventChannel.c.

◆ XenBusEventChannelClose()

UINT32 EFIAPI XenBusEventChannelClose ( IN XENBUS_PROTOCOL This,
IN evtchn_port_t  Port 
)

Close a local event channel Port.

Parameters
ThisA pointer to the XENBUS_PROTOCOL.
PortThe event channel to close.
Return values
UINT32The return value from the hypercall, 0 if success.

Definition at line 71 of file EventChannel.c.

◆ XenBusEventChannelNotify()

UINT32 EFIAPI XenBusEventChannelNotify ( IN XENBUS_PROTOCOL This,
IN evtchn_port_t  Port 
)

Send an event to the remote end of the channel whose local endpoint is Port.

Parameters
ThisA pointer to the XENBUS_PROTOCOL.
PortLocal port to the event from.
Return values
UINT32The return value from the hypercall, 0 if success.

Definition at line 58 of file EventChannel.c.

◆ XenEventChannelNotify()

UINT32 XenEventChannelNotify ( IN XENBUS_DEVICE Dev,
IN evtchn_port_t  Port 
)

Send an event to the remote end of the channel whose local endpoint is Port.

Parameters
DevA pointer to XENBUS_DEVICE.
PortThe port to notify.
Returns
Return 0 on success, or return the errno code from the hypercall.

Definition at line 17 of file EventChannel.c.