Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

Benjamin Kaduk kaduk at MIT.EDU
Fri May 7 18:55:17 UTC 2010


On Fri, 7 May 2010, Dmitry Krivenok wrote:

>
> It looks like dev2unit is exactly what I need to fix compilation issue.
> I changed the code of all modules as follows:
>
> - int dev_num = minor(dev);
> + int dev_num = minor(dev2unit(dev));
>
> and now it compiles and works well.
>
> Is this the proper way of solving the problem?

It should be -- see the commit message for svn revision 187830 on 
2009-01-28 17:57:16Z by ed

-Ben Kaduk


More information about the freebsd-hackers mailing list