Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2006 15:55:00 +0000 (UTC)
From:      Doug Ambrisko <ambrisko@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/modules/linsysfs Makefile
Message-ID:  <200606151555.k5FFt0vO058289@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ambrisko    2006-06-15 15:55:00 UTC

  FreeBSD src repository

  Added files:           (Branch: RELENG_6)
    sys/modules/linsysfs Makefile 
  Log:
  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
  ago:
    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
  1.1.2.1   +11 -0     src/sys/modules/linsysfs/Makefile (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606151555.k5FFt0vO058289>