Kernels should be exported by marking the kernel using callconv(.Kernel) and exporting it as a regular function.