An interlock is a device installed on your electrical panel that acts like a transfer switch.  It is a safety measure that prevents forgetting to turn off the main breaker(s) when switching to generator power.