Why can't I do "mknod /dev/cdev c 32 0"

Kris Kennaway kris at obsecurity.org
Wed Dec 1 18:56:58 PST 2004


On Thu, Dec 02, 2004 at 10:42:10AM +0800, 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 at 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.

Yes, it can, if the driver supports that.

You should update to 5.3 though, becuase you're probably hitting a bug
that was fixed ages ago.

Also, please wrap your lines at 70 characters so that your emails may
be easily read.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041201/cc0ad902/attachment.bin


More information about the freebsd-questions mailing list