Unix/Linux Go Back    

What is on Your Mind? Come inside and relax a while. Discuss whatever is on your mind. New members can introduce themselves. However, technical Q&A should happen in our other forums.

Line 2238 Unix V6 Comment: You are not expected to understand this.

What is on Your Mind?

Thread Tools Search this Thread Display Modes
Old Unix and Linux 04-29-2009
Neo's Unix or Linux Image
Neo Neo is online now Forum Staff  
Join Date: Sep 2000
Last Activity: 25 October 2016, 11:01 AM EDT
Location: Asia pacific region
Posts: 13,426
Thanks: 811
Thanked 1,057 Times in 496 Posts
Line 2238 Unix V6 Comment: You are not expected to understand this.

Here is the famous line 2238 of Unix V6 which is part of some of the most delicate parts of the kernel, context switching.

This comment received huge publicity and just may be the the most famous source code comment in computing history.

2230	/*
2231	 * If the new process paused because it was
2232	 * swapped out, set the stack level to the last call
3333	 * to savu(u_ssav).  This means that the return
2235	 * actually returns from the last routine which did
2236	 * the savu.
2237	 *
2238	 * You are not expected to understand this.
2239	 */
2240	if(rp->p_flag&SSWAP) {
2241		rp->p_flag =& ~SSWAP;
2242		aretu(u.u_ssav);
2243	}

Ref: Unix Sixth Edition Kernel Source Code, Western Electric Company
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sed/awk to insert comment at defined line number homefp Shell Programming and Scripting 8 01-18-2008 03:14 PM
Want to understand the meaning of the following line dhanamurthy Shell Programming and Scripting 5 05-24-2007 09:20 AM
how to comment multiple lines in unix balireddy_77 Shell Programming and Scripting 3 02-19-2007 06:16 AM
remove single-line comment Icy002 Programming 3 04-09-2006 08:30 AM
Need to add a comment line in a text file orakhan Shell Programming and Scripting 2 09-22-2005 08:36 PM

All times are GMT -4. The time now is 11:30 AM.