]> xenbits.xensource.com Git - xen.git/commit
evtchn: add helper for port_is_valid() + evtchn_from_port()
authorJan Beulich <jbeulich@suse.com>
Tue, 8 Jun 2021 12:47:14 +0000 (14:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Jun 2021 12:47:14 +0000 (14:47 +0200)
commit3270a2d45fbbcdf9b3dd44b4b4776c1fc4682717
treee4933e25eb0cd90771b8826abba404a53736df8a
parent411076f4d635f6cba5e74e8173d0ac4c576024e8
evtchn: add helper for port_is_valid() + evtchn_from_port()

The combination is pretty common, so adding a simple local helper seems
worthwhile. Make it const- and type-correct, in turn requiring the
two called function to also be const-correct (and at this occasion also
make them type-correct).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/event_channel.c
xen/include/xen/event.h