Doug Ambrisko 060e488247 Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect.  Currently
only /dev/null is always registered.  Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

Linprocfs uses this to display the major number of the driver.  The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs.  MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by:	IronPort Systems
2006-05-05 16:10:45 +00:00
..
2006-03-11 08:42:08 +00:00
2006-03-16 15:18:17 +00:00
2006-03-16 15:18:17 +00:00
2005-10-18 06:11:08 +00:00
2006-02-26 17:51:22 +00:00
2005-10-05 05:26:03 +00:00
2005-05-10 12:02:18 +00:00
2005-06-09 19:45:09 +00:00
2006-02-17 10:52:59 +00:00
2006-03-12 19:06:06 +00:00
2005-09-20 06:48:55 +00:00
2005-05-10 12:02:18 +00:00
2005-09-19 10:14:05 +00:00
2006-02-18 23:49:28 +00:00
2005-08-10 04:01:21 +00:00
2006-03-30 18:39:24 +00:00
2006-01-16 17:03:06 +00:00
2006-04-28 05:23:10 +00:00