The way I first read it, by setting off the "mostly written in C" with the commas, you are making it additional or parenthetical information. So the kernel is the subject. And as a singular word, you need the singular verb form, communicates.
But on a second reading, I thought that perhaps...