From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 27 08:04:51 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55779106564A for ; Fri, 27 Apr 2012 08:04:51 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9688FC08 for ; Fri, 27 Apr 2012 08:04:50 +0000 (UTC) Received: by mail.embedded-brains.de (Postfix, from userid 65534) id C5B0D6528FC; Fri, 27 Apr 2012 09:56:09 +0200 (CEST) Received: from [192.168.96.31] (eb0011.eb.z [192.168.96.31]) by mail.embedded-brains.de (Postfix) with ESMTP id 6814C6528FA for ; Fri, 27 Apr 2012 09:56:06 +0200 (CEST) Message-ID: <4F9A5116.6080908@embedded-brains.de> Date: Fri, 27 Apr 2012 09:56:06 +0200 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110920 SUSE/3.1.15 Lightning/1.0b2 Thunderbird/3.1.15 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: thread0 usage in syncache_socket() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 08:04:51 -0000 Hi, in syncache_socket() in tcp_syncache.c the global variable thread0 is used to do a in6_pcbconnect() with the ucread of thread0. Why is the thread0 used here and not the one of the current thread? -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.