Hello, there is a small bug in sdk (pspmodulemgr_kernel.h) :
SceUID sceKernelLoadModuleBuffer(SceSize bufsize, void *buf, int flags, SceKernelLMOption *option);
should be :
SceUID sceKernelLoadModuleBuffer(void *buf, SceSize bufsize, int flags, SceKernelLMOption *option);
The first and second parameters must be swapped.