Moving EventType to kernel API