Hi Yordan, We decided to maintain new xenomai plugin in our xenomai tree at first because of concerns as we discussed so I do not send modified xenomai plugin patch to review anymore. But this patch is still meaningful to avoid code duplication. Thanks for your patience and time to reveiw my patch. I have learned lots from your comments. Regards Hongzhan Chen Hongzhan Chen (1): kernel-shark: Move common APIs and definitions out to avoid duplication src/KsPlugins.cpp | 22 ++++++++++++ src/KsPlugins.hpp | 49 +++++++++++++++++++++++++ src/plugins/SchedEvents.cpp | 71 ++++++------------------------------- src/plugins/common_sched.h | 64 +++++++++++++++++++++++++++++++++ src/plugins/sched_events.c | 32 +---------------- src/plugins/sched_events.h | 5 +-- 6 files changed, 147 insertions(+), 96 deletions(-) create mode 100644 src/plugins/common_sched.h -- 2.17.1