On Wed, Feb 06, 2019 at 03:15:26 +0000, Richard Henderson wrote: > > Does anybody know why tb_lookup__cpu_state() has that odd > > double-underscore in the middle of its name? > > I'm inclined to think typo... Emilio?
It's not a typo -- it's there to separate "tb lookup" and "cpu state" to avoid ambiguity when guessing what the function does based on its name. Other projects, such as the kernel, make extensive use of double underscores for this purpose. In fact, I believe I picked up the habit from reading kernel code. E.