From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 22:26:42 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A40CF1065677 for ; Wed, 9 Jul 2008 22:26:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 4C93F8FC0A for ; Wed, 9 Jul 2008 22:26:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1640872pyb.10 for ; Wed, 09 Jul 2008 15:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Emgui3Djw77xkl7GV3Tpag0jyriyEuq04cCgocPp6zo=; b=msCZan4xCMfLgSoexQlXrybHFdJ+hvjzDKTV/xQIzZW8jqPSuYDHacWBhgUBolF0Qs 0E85U8mvuxONAY0uwTRZxzAAJFytDwncsFHa0XIU/N70/agGFDn6Sp491KjNtf+cw4fD 4yZzqyF+r/pF8fAeOHj379OXpjEQ28KQHqKRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XaZ01Bei+Y+W/3r+FImy96/KIIUMM51/LtQqaBHO2oxlgbsSEmwnESJySNHXlVif6g hcH/suI1WpjwfgNu6TT+pVDVNHoT4JNFC0XbRzGyZEk4AQBNV1L1eUUCnmOS7/ZPYPi4 N5Ha7HwVZ8KQ7Bk87kISIBcjGRU/Nv9tUJ02M= Received: by 10.140.188.10 with SMTP id l10mr4340736rvf.6.1215642401322; Wed, 09 Jul 2008 15:26:41 -0700 (PDT) Received: by 10.141.197.13 with HTTP; Wed, 9 Jul 2008 15:26:41 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2008 15:26:41 -0700 From: "Maksim Yevmenkin" To: "Alex Keda" In-Reply-To: <48753475.5040402@lissyara.su> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48751292.7080902@lissyara.su> <48753475.5040402@lissyara.su> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth stack ported from NetBSD X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 22:26:42 -0000 On Wed, Jul 9, 2008 at 2:58 PM, Alex Keda wrote: >>i took very quick look - good effort :) there are however, few locking >>issues, and, some utilities are missing. > hmm, what issues ? for one - socket's layer is not properly locked. i also suspect (but not yet 100% sure) there is something fishy might be going on when packets cross boundary between usb and netbt. usb is giant locked, and there is very little locking in netbt. i saw the author simply replaced few splxxx/splx calles with mtx_xxx calls in few places, but i'm pretty sure this is not all of it. >>also, original thread seems to be about some bluetooth gps device. > > the thread about ported netbt stack to freebsd > not gps ;) > why netbt ? > becouse native stack freebsd not support SCO audio 1) i'm willing to give out the code that i have to anyone who has the desire to work on this; 2) i'm willing to help with the code and commit all the produced patches; 3) all the credit will go the person how will do the work; > rfcomm_sppd > i's first step that's fine. furthermore, i want to go on the record here and say that if netgraph (due to its complexity, etc.) is a big problem here, and, prevents people from working on bluetooth in freebsd, i'm prepared to seriously consider netbt stack as alternative. the userspace part of both stacks has a lot of shared code. also it would be beneficial for all bsd-family operating systems. thanks, max