From owner-freebsd-questions@FreeBSD.ORG Thu Sep 10 10:09:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 856E41065670 for ; Thu, 10 Sep 2009 10:09:27 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8628FC14 for ; Thu, 10 Sep 2009 10:09:26 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,363,1249250400"; d="scan'208";a="223273494" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay2.uni-muenster.de with ESMTP; 10 Sep 2009 12:09:24 +0200 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id D45261B07E5; Thu, 10 Sep 2009 12:09:24 +0200 (CEST) Date: Thu, 10 Sep 2009 12:09:24 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: device nodes in usb2 stack X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2009 10:09:27 -0000 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