6

I am making a statement in my dissertation based on a comment written in the Linux kernel source code. I would like to be able to reference this comment. At least I would like to be able to name the file to which I'm referring.

Is this (citing files in large pieces of source code) recommended?

What is the best way to go about doing this?

1

According to the MIT handbook in relation to writing code you should use the following when citing code.

  • Generally, the URL and the date of retrieval are sufficient. Add more details if it will help the reader get a clearer understanding of the source.
  • If you adapted the code, you should indicate “Adapted from:” or “Based on” so it is understood that you modified the code.

The page link above also includes the following in relation to open-source material

When you use code from an open source project, you need both to attribute the source and follow the terms of any open source license that applies to the code you are using.

Finally, as always with citing, you should check with your Department to see if they have guidance or a citation style-sheet.

| improve this answer | |
5

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.