25 #ifndef __MOTR_MOTR_LINUX_KERNEL_MODULE_H__ 26 #define __MOTR_MOTR_LINUX_KERNEL_MODULE_H__ 28 #include <linux/version.h> 32 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0) 33 #define M0_MOTR_KO_BASE(module) ((module)->core_layout.base) 34 #define M0_MOTR_KO_SIZE(module) ((module)->core_layout.size) 36 #define M0_MOTR_KO_BASE(module) ((module)->module_core) 37 #define M0_MOTR_KO_SIZE(module) ((module)->core_size) M0_INTERNAL const struct module * m0_motr_ko_get_module(void)