DEVFS - Separate ioctl struct from in-kernel struct
authorAlex Hornung <ahornung@gmail.com>
Thu, 13 Aug 2009 11:06:00 +0000 (12:06 +0100)
committerAlex Hornung <ahornung@gmail.com>
Mon, 17 Aug 2009 09:14:21 +0000 (10:14 +0100)
commit5704df1d1b4d7013a1c839663ff7b5fb0c697124
treee56ee351a388a805bc16b69af171f17c57073903
parentb012a2caf4b41ad62d691eb78745845a4a12382b
DEVFS - Separate ioctl struct from in-kernel struct

* Separate out an ioctl structure from the devfs_rule struct called
  devfs_rule_ioctl.
  This avoids unnecessary complications like copyin, and it avoids
  problems caused by userland reporting wrong sizes.

* Also separate the rule_type from the rule_cmd into different fields
  in both structs.

Suggested-By: Simon "corecode" Schubert
sys/vfs/devfs/devfs_rules.c
sys/vfs/devfs/devfs_rules.h