in nsm-driver/nsm.c [406:420]
static void nsm_device_remove(struct virtio_device *vdev)
{
int rc;
if (vdev != nsm_dev) {
pr_err("Invalid NSM device to remove.\n");
return;
}
rc = nsm_device_update(NULL);
if (rc)
pr_err("NSM device could not be removed: %d.", rc);
else
pr_debug("NSM device has been removed.\n");
}