How to Properly Cite Linux Source Code?
In my mind, I see the Linux source code as a single bibliography entry (possibly with its official kernel.org repository as the source URL). You can refer to the different files in the text as \cite[Version~4.1, \texttt{drivers/android/binder.c}, Line~18]{Linux}.

EDIT: suggested kernel.org instead of github, as pointed out by bdsl, sebleblanc and Bruno.