From owner-freebsd-questions@FreeBSD.ORG Thu Dec 2 03:06:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A728D16A4CE for ; Thu, 2 Dec 2004 03:06:11 +0000 (GMT) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72A9243D2F for ; Thu, 2 Dec 2004 03:06:11 +0000 (GMT) (envelope-from bbobowski@cogeco.ca) Received: from [24.150.215.98] (d150-215-98.home.cgocable.net [24.150.215.98]) by fep1.cogeco.net (Postfix) with ESMTP id 943F87DBE; Wed, 1 Dec 2004 22:06:10 -0500 (EST) Message-ID: <41AE8635.4080609@cogeco.ca> Date: Wed, 01 Dec 2004 22:04:21 -0500 From: Brian Bobowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Thunderbird/0.7.1 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cm c References: <20041202024210.50483.qmail@web15311.mail.bjs.yahoo.com> In-Reply-To: <20041202024210.50483.qmail@web15311.mail.bjs.yahoo.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Why can't I do "mknod /dev/cdev c 32 0" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 03:06:11 -0000 cm c wrote: > The output of 'uname -a' is: > FreeBSD .itc.inventec 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 > 02:55:42 GMT 2003 > root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC > i386 > It's 5.x, but if the node is created automatically, how do I use open? > I mean, under linux, user space processes need do 'open("/dev/cdev") > before do other things, can /dev/cdev be created automatically? I > don't think so. The man page for open(2) says it can look at existing files as well as make new ones. I'm probably missing something crucial and should thus yield the floor to those knowledgeable at such things. The only other thing I can suggest is to look at the man pages for devfs(8), the utility that helps control the system, and for devfs(5) itself. -BB