Referencing specific files in source code in a dissertation
It's not uncommon in certain areas of CS to cite specific files. In your specific case, I would suggest that you include the git commit hash of the kernel.org sources in the citation, so that people can find the precise version your referring to.