[Linux] Difficulties in code reading: examples

cascade of knowledge

But when we want to go deep into other people's code, it is actually very painful. Sometimes I don't understand what he is trying to do. Why do you do this and what are the associated issues? No clues to follow. For example, the following
commit 71489e21d720a09388b565d60ef87ae993c10528
Author: Joe Stringer [email protected]
Date: Sun Mar 29 15:53:39 2020 -0700
net: Track socket refcounts in skb_steal_sock()
Refactor the UDP/TCP handlers slightly to allow skb_ steal_sock() to make
the determination of whether the socket is reference counted in the case
where it is prefetched by earlier logic such as early_demux.

To put it bluntly, it is a cascading expansion of concepts. In fact, it is still somewhat difficult.

Troubles with Analogy

The difficulty of this commit is that you must first understand the following nouns:
steal; the trouble of analogies, many nouns are analogized from one meaning of the word; such as steal, steal, this

Guess you like

Origin blog.csdn.net/qq_36428903/article/details/127933153