From owner-freebsd-usb@FreeBSD.ORG Sun Oct 18 21:08:23 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F6C2106566C for ; Sun, 18 Oct 2009 21:08:23 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9F5598FC13 for ; Sun, 18 Oct 2009 21:08:22 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,582,1249250400"; d="scan'208";a="285819441" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 18 Oct 2009 23:08:21 +0200 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id CB1121B0750; Sun, 18 Oct 2009 23:08:20 +0200 (CEST) Date: Sun, 18 Oct 2009 23:08:14 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=+permail-200910182108141e86ffa80000234d-a_best01+ Subject: device nodes in usb2 stack (fwd) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 21:08:23 -0000 This is a MIME encoded multipart message. --+permail-200910182108141e86ffa80000234d-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit posted this to freebsd-questions@ a while ago and got no answer. alex --+permail-200910182108141e86ffa80000234d-a_best01+ Content-Type: message/rfc822; charset=us-ascii Content-Description: device nodes in usb2 stack (fwd) Date: Thu, 10 Sep 2009 12:09:24 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster Subject: device nodes in usb2 stack To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit i was wondering why some device nodes appear as regular files under /dev (like ulpt or da e.g.) and some don't? if i attach my usb dongle device i get this dmesg output: ugen1.2: at usbus1 ubt0: on usbus1 but no device node gets created under /dev. however the following lines i have in my /etc/devd.conf work just as expected: # When a USB Bluetooth dongle appears activate it attach 100 { device-name "ubt[0-9]+"; action "/etc/rc.d/bluetooth quietstart $device-name"; action "/usr/local/bin/obexapp -r /var/spool/obex -s -C1"; }; detach 100 { device-name "ubt[0-9]+"; action "/etc/rc.d/bluetooth quietstop $device-name"; action "/usr/bin/killall obexapp"; }; the device works perfectly, but i'm still wondering why no device node gets created in /dev. i always thought one of the main unix philosophies was: "everything is a file!". cheers. alex --+permail-200910182108141e86ffa80000234d-a_best01+--