Added device_open and device_release functions implementation