Can't use size_t as kernel parameter type, switched to ulong.