From owner-freebsd-net@FreeBSD.ORG Fri Jul 8 21:32:29 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D07F016A41C for ; Fri, 8 Jul 2005 21:32:29 +0000 (GMT) (envelope-from fming@borderware.com) Received: from mail.borderware.com (mail.borderware.com [207.236.65.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ABE243D4C for ; Fri, 8 Jul 2005 21:32:29 +0000 (GMT) (envelope-from fming@borderware.com) Message-ID: <42CEF0EB.4000107@borderware.com> Date: Fri, 08 Jul 2005 17:32:27 -0400 From: ming fu User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: what to replace splnet in FreeBSD 5.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 21:32:29 -0000 Hi, With splnet() became a no-op in sys/systm.h static __inline intrmask_t splnet(void) { return 0; } What should I use to replace the splnet? I have a module receiving input from both ip_input() and a device that userland can write to. I guess I was cover from the ip_input() as it should have the proper lock. However, I am on my own to figure out what to replace the splnet() when receive from the device from the userland. It uses splnet() in FreeBSD 4.x. Thanks in advance, Ming