cvs commit: src/sys/modules/linsysfs Makefile

Doug Ambrisko ambrisko at
Thu Jun 15 15:55:03 UTC 2006

ambrisko    2006-06-15 15:55:00 UTC

  FreeBSD src repository

  Added files:           (Branch: RELENG_6)
    sys/modules/linsysfs Makefile 
  cvs update -r 1 is not the same as -j 1 ... so pull this file in correctly:
  MFC the enhancements to the Linux emulation layer so the MegaRAID SAS
  management tools can work.  This is not totally connected to the build
  yet.  The mfi(4) change have not been MFC'ed yet.  This will be done
  shortly.  I'm trying to do this in chunks so I don't totally break
  the build on a missed commit.  This has passed make universe a while
    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.
  Revision  Changes    Path   +11 -0     src/sys/modules/linsysfs/Makefile (new)

More information about the cvs-src mailing list