Well, one way to do your development more quickly would be to run
your module inside a virtual kernel (man vkernel). You will need
to run the vkernel with the -U option to permit module loading.
If you want to paste the code you are using to register and unregister
the protosw/domain structs I can take a look at that.