Date: Wed, 01 Dec 2004 22:04:21 -0500 From: Brian Bobowski <bbobowski@cogeco.ca> To: cm c <beatlelittle@yahoo.com.cn> Cc: freebsd-questions@freebsd.org Subject: Re: Why can't I do "mknod /dev/cdev c 32 0" Message-ID: <41AE8635.4080609@cogeco.ca> In-Reply-To: <20041202024210.50483.qmail@web15311.mail.bjs.yahoo.com> References: <20041202024210.50483.qmail@web15311.mail.bjs.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > <mailto: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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41AE8635.4080609>