is that necessary to have electronic based knowledge for writing the device drivers programs plz answer this one
You need to know a lot of detail about the kernel, interrupts, IRQs, timing, chipsets, etc, so I would assume that electronics would be very useful. Its definitely in the realms of "rocket science"