From owner-freebsd-drivers@FreeBSD.ORG Wed May 22 00:31:41 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4D95D130 for ; Wed, 22 May 2013 00:31:40 +0000 (UTC) (envelope-from jesalepad@gmail.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id E599EAB5 for ; Wed, 22 May 2013 00:31:39 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so3712472iej.30 for ; Tue, 21 May 2013 17:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=XKgBkASK4rHVKcjHjzigtkLivIYANTI9GLc1gV0PXoU=; b=IEU3JuMhhzy6wOdaBEqWqyAQI/QE1n6sZKyLFNVQbYtx4KZybFYuYRUNXvJxQPpB3W AuIvGFVsOqI1M3nIhbZXZGxh+O4OxnHi0OIl4CYVKeg7b3jlaxYvgg/AumBGpk6ee+Wp u7T17PzFP7QUlUBDWXat28Kq96RMeJCyXvzQtUrfRJq7sOWIea4Wxv667yYKydApzssE DSxx+PAkoPVjVHvC8d5+RaHdzfOUg/JiFMS+aCwVfH3OWc+ha+MnNH8zsuWRX5Cymn/Y 0Bv6GQoCbly3QZrmqkn13+kI0BHiqc2tTUSGldsHBeNUdF7CJ0Lr1SSLl8L20DTcQBM9 4/0w== MIME-Version: 1.0 X-Received: by 10.50.130.3 with SMTP id oa3mr9771291igb.69.1369182699650; Tue, 21 May 2013 17:31:39 -0700 (PDT) Received: by 10.64.14.145 with HTTP; Tue, 21 May 2013 17:31:39 -0700 (PDT) Date: Tue, 21 May 2013 20:31:39 -0400 Message-ID: Subject: Getting a list of all drivers From: Jesus Alejandro Padilla To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2013 00:31:41 -0000 Hi, I=92m trying to get a comprehensive list of all the drivers in FreeBSD (I= =92m talking about all the drivers available, not only the ones installed in my system). I was thinking of getting them from the kernel source code (/sys), but I=92ve had some problems. Here=92s what I=92ve tried so far. - Get all loadable kernel modules. The problem with this approach is that there are many modules that are not drivers (like MAC policies). - Get the =93device=94 entries in the GENERIC and NOTES configuration fi= les. However, this has the same problem as the loadable kernel modules; there are =93devices=94 that are not drivers, and I think that these files don= =92t contain all drivers, only the ones that will be compiled statically with the kernel, right? - Get the modules under /sys/dev. The problem is that there are other drivers that are outside this folder. Do you know if there=92s a better way of building this list? Is there a fil= e, like a MAINTAINERS file that contains this information up to date? I=92d really appreciate any help. Thank you very much! Alex PS: I know that some proprietary drivers, like Nvidia's, might be hard to get, but I=92d like to get at least all the list of the drivers included in the kernel source code (/sys). From owner-freebsd-drivers@FreeBSD.ORG Thu May 23 13:58:04 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 05480E43 for ; Thu, 23 May 2013 13:58:04 +0000 (UTC) (envelope-from oritm@mellanox.com) Received: from eu1sys200aog121.obsmtp.com (eu1sys200aog121.obsmtp.com [207.126.144.151]) by mx1.freebsd.org (Postfix) with ESMTP id 2DDF92A2 for ; Thu, 23 May 2013 13:58:02 +0000 (UTC) Received: from MTLCAS01.mtl.com ([193.47.165.155]) (using TLSv1) by eu1sys200aob121.postini.com ([207.126.147.11]) with SMTP ID DSNKUZ4gZO3vOw7MazP1xK8DxiIprEcBjO9c@postini.com; Thu, 23 May 2013 13:58:03 UTC Received: from MTLDAG01.mtl.com ([10.0.8.75]) by MTLCAS01.mtl.com ([10.0.8.71]) with mapi id 14.03.0123.003; Thu, 23 May 2013 16:47:15 +0300 From: Orit Moskovich To: "freebsd-drivers@freebsd.org" Subject: taskqueues Thread-Topic: taskqueues Thread-Index: Ac5XuKI6XhgBsdJeSxm0tXVuhEIwAQ== Date: Thu, 23 May 2013 13:47:14 +0000 Message-ID: <981733489AB3BD4DB24B48340F53E0A55B0D5206@MTLDAG01.mtl.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.13.1] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 13:58:04 -0000 Hi, Can you please specify the difference between interrupt threads and regular= kernel threads in the context of the different default taskqueues? Meaning, I saw that the taskqueue taskqueue_thread is actually a kernel thr= ead running the function taskqueue_thread_loop, And the 3 other default taskqueues are working with ithreads. Which of the above preempts the other? What should I use if performance is = critical (something equivalent to Linux softirq...)? Thanks, Orit Moskovich From owner-freebsd-drivers@FreeBSD.ORG Sat May 25 17:00:10 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 677A5209 for ; Sat, 25 May 2013 17:00:10 +0000 (UTC) (envelope-from followait@yahoo.com) Received: from nm11-vm1.bullet.mail.bf1.yahoo.com (nm11-vm1.bullet.mail.bf1.yahoo.com [98.139.213.152]) by mx1.freebsd.org (Postfix) with SMTP id E74419FD for ; Sat, 25 May 2013 17:00:09 +0000 (UTC) Received: from [98.139.212.144] by nm11.bullet.mail.bf1.yahoo.com with NNFMP; 25 May 2013 16:56:54 -0000 Received: from [98.139.215.254] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 25 May 2013 16:56:54 -0000 Received: from [127.0.0.1] by omp1067.mail.bf1.yahoo.com with NNFMP; 25 May 2013 16:56:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 518937.69667.bm@omp1067.mail.bf1.yahoo.com Received: (qmail 48041 invoked by uid 60001); 25 May 2013 16:56:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1369501014; bh=/i0sWcP/9nPNpdrNZjXbEk1x3ZFgdIkzcSdrrhqlrX8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=dDjXAHgAr+lXo/wcsZhIVHCtU6eddM3DKcjesr6URXXK7YFhWtRAumXRv9qSS5LMrVxcCeJWeUngPg571OEYSTs9B5INOlCRH3UfY3Z3b9z/Bx67oa9542+UorI+189FluhvnIORqbe9yHxx7wH18QTEpu320cUpRg1zmmhv+F8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=KrJ2I5PItaejqSJdkoND2sSTsBrUYbIMlUAV8eFQ9Tk9Ig/goFfLQ/lF8Fi0Tz+X1eXU6T/PuHy4ClMm3TWg5J8TTiIxTPaNJxwH1M3nrguQoa/PemDmdBV4tkjvh2/Fx39r1wEdE5daEA4b7bDrKDJhZ4HOfbHRkz0/y5FjHUE=; X-YMail-OSG: ZrMnhOAVM1n2k2AkY5jVJ.aKkU0fGb_3pHclpdDIM1WeLbc zi8KtNpcKbMnq.C67nRsdUygZl_FZOFSU7_hwchq6kyRkPQ988P5oxaB6.C1 wYOZ1NFOG6Yg4sOEfelcdtLtwgHYOcnDyoKdJBOfRsyZaMLLUI3jcG97B3sD UmhByllgk7c8Pcep36PZPhfwPw5vJq1oVIoJF72YxPWL.2eYH94SlcNDsOa0 ANI_3.oQzl83Sv_XsZdNfAxdIIq9So5lveyyTxRX9n.222O59lmTbzqUASOZ x71Jsr21IZ4RWoI_uTHGFjEOX7UdjZTstZSKEWw9WOVisJCE_AvHjHrlaegp Pq5BmVcv3dmqPs__mjNQsxwzoqkhyX.hUzQdG6GjFG7_i4umHNxYSctOwWH3 hesjGgjnftxCUJM6NBvOcPEbg_nMxK6muKvzYrCbxAlcch9aRDDB.RzrVGSa ui7BeXe.x2h921XTNfe2vhUU94yRCG7OFo5JJbYHw Received: from [114.60.89.103] by web163002.mail.bf1.yahoo.com via HTTP; Sat, 25 May 2013 09:56:54 PDT X-Rocket-MIMEInfo: 002.001, SSd2ZSBjaGVja2VkICJGcmVlQlNEIERldmVsb3BlcidzIEJvb2siLCB0aGVyZSBzZWVtcyBub3RoaW5nIGFib3V0IGhvdyB0byB3cml0ZSBGcmVlQlNEIGRyaXZlci4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.144.546 Message-ID: <1369501014.32768.YahooMailNeo@web163002.mail.bf1.yahoo.com> Date: Sat, 25 May 2013 09:56:54 -0700 (PDT) From: J Ronald Subject: Any offical study stuff? To: "freebsd-drivers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: J Ronald List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 17:00:10 -0000 I've checked "FreeBSD Developer's Book", there seems nothing about how to write FreeBSD driver. From owner-freebsd-drivers@FreeBSD.ORG Sat May 25 17:25:57 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8524FBE4 for ; Sat, 25 May 2013 17:25:57 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 5826FB49 for ; Sat, 25 May 2013 17:25:57 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id s9so14955302iec.20 for ; Sat, 25 May 2013 10:25:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=HelOIUEgIFWIBAE20Qj/aRSFt2vnxgFBO2u+uDf865U=; b=MkadODkO/fWbLrSOtdYJMleUpqfFNsvuxVboi8PAlNCSIem6zWZ+WURHBz0wC/bNTJ bXbXY7UeV0A/zeiWDm2SUmgEZQujHRVKbsXm5wkM5Lajs9prMdSLFS6xZuiAqVtAwVtA f766pXvpa6glCw0b8jVwVAwp8upF7vICRqy2E+y0mbIgXc3B5XOhLfu57QxTFsbffSCS 3asOWZzwRya8h/jTPa29aic6z9/KyebMm5cDRywvuAnbWSshVM46bNgecMzJzs7aoNwe P6UlWkEKdZUPrIW2FOoMJLSZg8w1R+FDwiqFMrGKhuFbReboXHX3RkquHhtgllYVr3Bv WptQ== X-Received: by 10.50.132.103 with SMTP id ot7mr298654igb.99.1369502756951; Sat, 25 May 2013 10:25:56 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id r20sm4898854ign.8.2013.05.25.10.25.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 May 2013 10:25:55 -0700 (PDT) Sender: Warner Losh Subject: Re: Any offical study stuff? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1369501014.32768.YahooMailNeo@web163002.mail.bf1.yahoo.com> Date: Sat, 25 May 2013 11:25:53 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <7CBC37B1-379E-4F66-B769-742FEE568A20@bsdimp.com> References: <1369501014.32768.YahooMailNeo@web163002.mail.bf1.yahoo.com> To: J Ronald X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkf3d9itFNcwu6OVwnriZ5NjHd2BHrjltQ7jrMzAj2G880t6sxns/KcLEDZOa09HQVo7X7U Cc: "freebsd-drivers@freebsd.org" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 17:25:57 -0000 On May 25, 2013, at 10:56 AM, J Ronald wrote: > I've checked "FreeBSD Developer's Book", there seems nothing about how = to write FreeBSD driver. You might want to look at getting http://nostarch.com/bsddrivers.htm = which does a good job for the basics. The architecture handbook at = http://www.freebsd.org/doc/en/books/arch-handbook/ has some of the = basics, but has gotten a bit dated and staid. Warner From owner-freebsd-drivers@FreeBSD.ORG Sat May 25 18:47:20 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1A31672 for ; Sat, 25 May 2013 18:47:20 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay012.isp.belgacom.be (mailrelay012.isp.belgacom.be [195.238.6.179]) by mx1.freebsd.org (Postfix) with ESMTP id A66EAF3C for ; Sat, 25 May 2013 18:47:19 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AncHAJEGoVFbsKsp/2dsb2JhbABagwgwgnS/Q4EGF3SCIwEBBVYiARALEgYJFg8JAwIBAgEnEA4GDQEHAQEFiAgIvE+PHQeDVAOPfoErhzuQF4MROg Received: from 41.171-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.171.41]) by relay.skynet.be with ESMTP; 25 May 2013 20:46:10 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r4PIk8Nd010156; Sat, 25 May 2013 20:46:09 +0200 (CEST) (envelope-from tijl@coosemans.org) Message-ID: <51A106EB.2080004@coosemans.org> Date: Sat, 25 May 2013 20:46:03 +0200 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130517 Thunderbird/17.0.6 MIME-Version: 1.0 To: J Ronald Subject: Re: Any offical study stuff? References: <1369501014.32768.YahooMailNeo@web163002.mail.bf1.yahoo.com> <7CBC37B1-379E-4F66-B769-742FEE568A20@bsdimp.com> In-Reply-To: <7CBC37B1-379E-4F66-B769-742FEE568A20@bsdimp.com> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2MMUXQHGFLUVGUAKKUWJB" Cc: "freebsd-drivers@freebsd.org" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 18:47:20 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2MMUXQHGFLUVGUAKKUWJB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-05-25 19:25, Warner Losh wrote: > On May 25, 2013, at 10:56 AM, J Ronald wrote: >> I've checked "FreeBSD Developer's Book", there seems nothing about >> how to write FreeBSD driver. >=20 > You might want to look at getting http://nostarch.com/bsddrivers.htm > which does a good job for the basics. >=20 > The architecture handbook at > http://www.freebsd.org/doc/en/books/arch-handbook/ has some of the > basics, but has gotten a bit dated and staid. Also /usr/share/examples/drivers ------enig2MMUXQHGFLUVGUAKKUWJB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlGhBvAACgkQfoCS2CCgtivbywD/Qsz9XBXMMxVKIb7g0rHxKZnL BxaE1AW3ZlKh0wBdFdsBAIC3Mj1dVvLSe+ZQ3MtnW4roE9MPGH4ZUZ4IiIsTHajv =v/dF -----END PGP SIGNATURE----- ------enig2MMUXQHGFLUVGUAKKUWJB-- From owner-freebsd-drivers@FreeBSD.ORG Sat May 25 22:09:37 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A83D7151 for ; Sat, 25 May 2013 22:09:37 +0000 (UTC) (envelope-from mureninc@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 35527B12 for ; Sat, 25 May 2013 22:09:37 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id fp13so5425148lab.22 for ; Sat, 25 May 2013 15:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qHJGS0TBjnFkJJFKySUPCk4Fv3xCC+6q2oZ+Kfy6fpQ=; b=VcVNemUMuqQluPIOOqcKUxUOE2T76LYm96mKDS6DZqemud8vVkwmldqs201Yyq1IT+ m1u8iEnBz6CZ/AswAb4Ixz8VfTOjgGh564ERAJ0FzWP6fEU/dsGSnbinwGJ9AjwRc3TO AstV2y6HDJQd77sHkZfTJQMKFbAHexqyi6zhQx4vNLdooQHx7OW6o4eRHxDC2yRsu+ge UcgostR7TxeY6MEWdT8gTwmkTC4r/T+6ynFOPFl9pItqFAW9EZ52FySi8ZvW1WzUdpfo B+3cx5qd8lRefWyA9UL3XBq2XILLsnIBveknbUKgc5lpXnxLGgzS5McI4bWjVt7UZI+Z 6Dkw== MIME-Version: 1.0 X-Received: by 10.152.28.130 with SMTP id b2mr11611156lah.32.1369519776150; Sat, 25 May 2013 15:09:36 -0700 (PDT) Received: by 10.114.185.65 with HTTP; Sat, 25 May 2013 15:09:36 -0700 (PDT) In-Reply-To: <51A106EB.2080004@coosemans.org> References: <1369501014.32768.YahooMailNeo@web163002.mail.bf1.yahoo.com> <7CBC37B1-379E-4F66-B769-742FEE568A20@bsdimp.com> <51A106EB.2080004@coosemans.org> Date: Sat, 25 May 2013 15:09:36 -0700 Message-ID: Subject: Re: Any offical study stuff? From: "Constantine A. Murenin" To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 Cc: J Ronald , "freebsd-drivers@freebsd.org" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 22:09:37 -0000 On 25 May 2013 11:46, Tijl Coosemans wrote: > On 2013-05-25 19:25, Warner Losh wrote: >> On May 25, 2013, at 10:56 AM, J Ronald wrote: >>> I've checked "FreeBSD Developer's Book", there seems nothing about >>> how to write FreeBSD driver. >> >> You might want to look at getting http://nostarch.com/bsddrivers.htm >> which does a good job for the basics. >> >> The architecture handbook at >> http://www.freebsd.org/doc/en/books/arch-handbook/ has some of the >> basics, but has gotten a bit dated and staid. > > Also /usr/share/examples/drivers Also, /usr/src/sys/dev, or via the web, bxr.su/f/dev. C.