cvs commit: src/sys/kern sys_generic.c src/sys/sys mapped_ioctl.h

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Fri Aug 13 05:02:19 PDT 2004


joerg       2004/08/13 04:59:01 PDT

DragonFly src repository

  Modified files:
    sys/kern             sys_generic.c 
  Added files:
    sys/sys              mapped_ioctl.h 
  Log:
  IOCTL mapping layer Part I/II
  
  This adds a generic framework for mapping IOCTL requests (cmds) and
  attaching special processing functions. Instead of the former adhoc
  code using large switch statements e.g. in emulation/linux/linux_ioctl.c,
  the emulation layer registers a handler with the mappings for the request
  ranges it wants to handle specially. Devices can afterwards add there
  own mappings to support e.g. Linux specific IOCTLs.
  
  The first part adds the infrastructure, the second part converts the Linux
  emulation, dev/drm and dev/raid/aac.
  
  Submitted-by: Simon 'corecode' Schubert <corecode at xxxxxxxxxxxx>
  Some minor changes by myself.
  
  Revision  Changes    Path
  1.17      +118 -26   src/sys/kern/sys_generic.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_generic.c.diff?r1=1.16&r2=1.17&f=u





More information about the Commits mailing list