freebsd-skq/sys/i386/linux
ambrisko 6ebd888016 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.
2006-06-15 15:52:05 +00:00
..
imgact_linux.c
linux_dummy.c
linux_genassym.c
linux_ipc64.h
linux_locore.s
linux_machdep.c MFC: Propagate return value of the kern_execve() to the caller properly. 2005-08-04 23:25:32 +00:00
linux_proto.h Regenerate. 2005-07-20 17:43:53 +00:00
linux_ptrace.c MFC: Close some races between procfs/ptrace and exit1() by changing 2006-03-07 18:08:09 +00:00
linux_syscall.h Regenerate. 2005-07-20 17:43:53 +00:00
linux_sysent.c Regenerate. 2005-07-20 17:43:53 +00:00
linux_sysvec.c MFC the enhancements to the Linux emulation layer so the MegaRAID SAS 2006-06-15 15:52:05 +00:00
linux.h
Makefile
syscalls.conf
syscalls.master