svn commit: r362829 - head/sys/compat/linuxkpi/common/src

Hans Petter Selasky hps at selasky.org
Wed Jul 1 09:35:54 UTC 2020


On 2020-07-01 11:21, Konstantin Belousov wrote:
> It should be expressed as pget(pid, 0); instead of duplicating.

Hi,

Currently the LinuxKPI style is to use tdfind() and pfind(). If you look 
at linux_current.c you see multiple uses of the exact same syntax.

Quickly looking at the pget() implementation, I see it doesn't expand to 
exactly tdfind() and pfind(). pget() uses pfind_tid() which looks 
overkill compared to tdfind(). tdfind() uses a hash-table lookup, while 
pfind_tid() doesn't .... I'm confused.

--HPS




More information about the svn-src-all mailing list