Copy-paste bad! Cleaning up good! :-)
Thank you, Konstantin.
Acked-by: Morten Brørup <mb at smartsharesystems.com>
<feature creep>
I wonder if would improve anything marking the head/tail pointers ("d" and "s") in the inner functions __rte_restrict?
And perhaps the ring pointer "r" in the outer functions?
</feature creep>