I noticed that in Linux kernel 2.4 the sched.c file has a line that says:
void scheduling_functions_start_here(void) { }
and one that says
void scheduling_functions_end_here(void) { }
Shouldn't this material be written as a comment? What is the efficiency of using functions?
Ok, I just did some search queries, and now I can support my comment a bit. Check process.c , line 439 onwards.
I don't read C very well, but it looks like it needs to check if there is a thread in the scheduling function or not.
I am not the author of the Linux kernel, but the most likely answer is that function names appear more often in the index of IDE files than comments.
Source: https://habr.com/ru/post/1308380/More articles:Question in java.lang.Integer internal code - javaSQL Server insert with XML parameter - empty string not converting to null for numeric - xmlSilverlight 4: Where is the HtmlBrush located? - silverlightHow to change the height of a popoverController when one of its viewControllers appears? - iphoneThe ambiguous class name is c #How to get current text search in vim? - vimFacebook Canvas iFrame App - user authorization with the new OAuth protocol - authorizationC ++ from SpeakHere in iPhone app - c ++PHP in_array () / array_search () odd behavior - arraysPrestashop Newsletter Module - phpAll Articles