Number of devices parameterized
Register device
Unregister device on exit
Allocate memory for devices