Date: Fri, 06 Oct 2000 18:33:17 CST From: "bsdnewbie bsdnewbie" <bsdnewbie@hotmail.com> To: freebsd-questions@FreeBSD.org Subject: _How to get a free major number for a new device Message-ID: <F152JGqCtOGqgBkgDgn0000f6e3@hotmail.com>
next in thread | raw e-mail | index | archive | help
I began to write device drivers. My problem is: 1) How to determine the major number for my drv so it will not conflict with any other devs. In Linux, when a dev drv register with the major 0, the system will alloc a free major number. Is there any mecahnism like this in FreeBSD? 2) I want to write a shell program to automatically "mknod", how to know the major number of a dev when driver loaded? In Linux, by referring the file /proc/devices I can know the major number of a device, but the /proc in FreeBSD does not has such a file. Thanks best regards, bsdnewbie Oct 6, 2k _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F152JGqCtOGqgBkgDgn0000f6e3>