* Dmitry Krivenok wrote:
> - int dev_num = minor(dev);
> + int dev_num = minor(dev2unit(dev));
Almost there. Just remove all calls to unit2minor() and minor2unit() (if
present) and replace minor() with dev2unit():
int dev_num = dev2unit(dev);
But even better, don't use device unit numbe
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 sol
Hello Hackers,
I'm working on porting some kernel modules written for FreeBSD7 to FreeBSD8.
Some of these modules contain the following code:
struct cdev *dev;
...
int dev_num = minor(dev);
This code doesn't compile on FreeBSD8.
I found that in FreeBSD7 minor() was defined as follows:
515 int
3 matches
Mail list logo