Question: are drivers part of the kernel?
Answer: Yes, drivers are part of the OS. They run with the same privilege level as the OS kernel, and to write a driver you must know a good deal about the OS internals.