Because of the describedAs there is a differentce in view knowing whatas what to the idea of a process ID and thread ID is between FreeBSD and <trademark class="registered">Linux</trademark> we have to translate the view somehow. We do it by PID mangling. This means that we fake what a PID (=TGID) and TID (=PID) is between kernel and userland. The rule of thumb is that in kernel (in Linuxulator) PID = PID and TGID = shared -> group pid and to userland we present <literal>PID = shared -> group_pid</literal> and <literal>TID = proc -> p_pid</literal>. The PID member of <literal>linux_emuldata structure</literal> is a FreeBSD PID.
Because of the describedAs there is a differentce in viewknowing whatas what to the idea of a process ID and thread ID is between FreeBSD and <trademark class="registered">Linux</trademark> we have to translate the view somehow. We do it by PID mangling. This means that we fake what a PID (=TGID) and TID (=PID) is between kernel and userland. The rule of thumb is that in kernel (in Linuxulator) PID = PID and TGID = shared -> group pid and to userland we present <literal>PID = shared -> group_pid</literal> and <literal>TID = proc -> p_pid</literal>. The PID member of <literal>linux_emuldata structure</literal> is a FreeBSD PID.