From owner-freebsd-net@FreeBSD.ORG Sun Dec 30 21:26:11 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A9F316A417 for ; Sun, 30 Dec 2007 21:26:11 +0000 (UTC) (envelope-from tofig@freebsd.az) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.225]) by mx1.freebsd.org (Postfix) with ESMTP id A536413C4E5 for ; Sun, 30 Dec 2007 21:26:10 +0000 (UTC) (envelope-from tofig@freebsd.az) Received: by hu-out-0506.google.com with SMTP id 28so412159hub.8 for ; Sun, 30 Dec 2007 13:26:09 -0800 (PST) Received: by 10.78.184.2 with SMTP id h2mr14374224huf.27.1199049968816; Sun, 30 Dec 2007 13:26:08 -0800 (PST) Received: from ?192.168.1.7? ( [81.21.81.41]) by mx.google.com with ESMTPS id 39sm5221908hui.5.2007.12.30.13.26.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Dec 2007 13:26:06 -0800 (PST) Message-ID: <47780CE4.3000302@freebsd.az> Date: Mon, 31 Dec 2007 01:25:56 +0400 From: Tofig Suleymanov User-Agent: Thunderbird 1.5.0.8 (X11/20061113) MIME-Version: 1.0 To: Robert Watson References: <4777690B.1030403@freebsd.az> <20071230170217.T6382@fledge.watson.org> In-Reply-To: <20071230170217.T6382@fledge.watson.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: if_start running deferred for Giant 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: Sun, 30 Dec 2007 21:26:11 -0000 Robert Watson wrote: > > On Sun, 30 Dec 2007, Tofig Suleymanov wrote: > >> I am writing a driver for Kyocera USB modem for FreeBSD and there are >> a few questions that I am not able to solve alone. I would be >> grateful if someone could point me into the right direction.Here is >> the first one: >> >> Inside the USB_ATTACH() function I initialise the ifnet(9) structure >> and return USB_ATTACH_SUCCESS_RETURN. Everything seems to be fine so >> far (I can see the interface in ifconfig output) except the following >> error notice spit to the console: >> >> xxxxxx kernel: ib0: if_start running deferred for Giant >> >> I am not sure what does this exactly mean. >> >> Any help would be appreciated. > > This occurs when a network device driver has declared itself > IFF_NEEDSGIANT -- that is, has declared that it requires the Giant > lock in order to operate. As this is considered an undesirable state > of affairs for a device driver, a warning is printed. However, in the > case of a USB device driver, it is currently required as the USB > framework is not MPSAFE, so requires Giant. > > Robert N M Watson > Computer Laboratory > University of Cambridge > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" Thanks for clarification. Does it mean that I can ignore this notice when dealing with USB framework ?