From owner-freebsd-current Mon Mar 4 13:48:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from owa1.digisle.com (ex-owa-sj.digisle.com [165.193.27.217]) by hub.freebsd.org (Postfix) with ESMTP id A2A4F37B432; Mon, 4 Mar 2002 13:47:28 -0800 (PST) Received: from digisle.net ([206.220.227.145] RDNS failed) by owa1.digisle.com with Microsoft SMTPSVC(5.0.2195.2966); Mon, 4 Mar 2002 13:47:28 -0800 Message-ID: <3C83EB6D.CFE8016C@digisle.net> Date: Mon, 04 Mar 2002 13:47:25 -0800 From: Maksim Yevmenkin Organization: Digital Island X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer Cc: freebsd-current@FreeBSD.ORG, archie@FreeBSD.ORG Subject: Re: Netgraph, device drivers and mutexes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Mar 2002 21:47:28.0099 (UTC) FILETIME=[2DB6F330:01C1C3C6] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian, [...] > > > I hope that this helps you! > > > > yes it did help :) i changed my code and it seems to work just fine. > > i wish i had SMP laptop to test it :) > > Well it aint exactly SMP safe YET, until I make those changes through teh > REST of the system. There are still direct timeout() calls in several > modules that I need to change to follow my own suggestions and there are > many nodes that need to be changed to gain a lock when they first > try insert data into the graph. e.g. ng_tty, ng_ether, speaking of ng_tty... it is clear to me how to inject data into Netgraph in a safe way, but it is not yet clear how Netgraph can inject data into other subsystems. you see, the Bluetooth spec defines several Host (PC) to Host Controller (Bluetooth unit) communication protocols. one of them is UART transport layer (AKA H4). i have implemented H4 line discipline that also a Netgraph node. (i called it ng_sio in my report but it was wrong). it works now, and i can talk to Xircom card, but it should be changed later. any hints? thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message