Skip to content

Commit 659b3d6

Browse files
firscitykartben
authored andcommitted
drivers: xen: export missing evtchn API function
Previously clear_event_channel() function, that is a part of Xen event channel API was missing in events.h header. Add function declaration and documentation description for to let users add it to external drivers. Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
1 parent 27e0445 commit 659b3d6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/xen/events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int unmask_event_channel(evtchn_port_t port)
197197
return 0;
198198
}
199199

200-
static void clear_event_channel(evtchn_port_t port)
200+
void clear_event_channel(evtchn_port_t port)
201201
{
202202
shared_info_t *s = HYPERVISOR_shared_info;
203203

include/zephyr/xen/events.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ int get_missed_events(evtchn_port_t port);
8181
int mask_event_channel(evtchn_port_t port);
8282
int unmask_event_channel(evtchn_port_t port);
8383

84+
/**
85+
* Clear event channel from pending events
86+
* @param port - event channel number
87+
*/
88+
void clear_event_channel(evtchn_port_t port);
89+
8490
int xen_events_init(void);
8591

8692
#endif /* __XEN_EVENTS_H__ */

0 commit comments

Comments
 (0)