]> git.proxmox.com Git - mirror_spl.git/commit
Update code to use misc_register()/misc_deregister()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Sep 2014 23:42:15 +0000 (19:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Oct 2014 22:07:28 +0000 (15:07 -0700)
commit3a9253056345e27cd79433a52a63929d6bef907b
tree07546a099687a3ab0575155996b23419ebd7862f
parent0cb3dafccdffd00167275416730332cd5570a07a
Update code to use misc_register()/misc_deregister()

When the SPL was originally written it was designed to use the
device_create() and device_destroy() functions.  Unfortunately,
these functions changed considerably over the years making them
difficult to rely on.

As it turns out a better choice would have been to use the
misc_register()/misc_deregister() functions.  This interface
for registering character devices has remained stable, is simple,
and provides everything we need.

Therefore the code has been reworked to use this interface.  The
higher level ZFS code has always depended on these same interfaces
so this is also as a step towards minimizing our kernel dependencies.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/spl-build.m4
include/Makefile.am
include/spl-device.h [deleted file]
include/splat-ctl.h
include/sys/sunddi.h
module/splat/splat-ctl.c
module/splat/splat-internal.h