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

Brian Bobowski bbobowski at cogeco.ca
Wed Dec 1 18:25:09 PST 2004


cm c wrote:

>I'm a newbie to freebsd. I'm trying to port a simple driver to freebsd, but something stopped me. I tried to use the /usr/share/examples to have a test, but mknod failed :
>      mknod /dev/cdev c 32 0
>even the make_dev call will cause system rebooting!
> 
>I don't know why.
>Who can help me?
>thanks.
>  
>
If you are using FreeBSD 5.x, the devfs makes mknod irrelevant; device
nodes are created automatically. That's all I know on the subject.

The gurus(which I am not) will probably need more information to help
you at all; the output of "uname -a" is standard. Information about what
you're trying to port will likely be key as well.

-BB


More information about the freebsd-questions mailing list