For the beginning of the second sentence I suggested rather "Interactions with platform-specific hardware happen only ... " as "Interactions between driver code and hardware happen only inside the driver" sounds a bit strange as the driver code is part of the driver thus yes it is "inside the driver" ...