Пример #1
0
static int __init clariion_init(void)
{
	int r;

	r = scsi_register_device_handler(&clariion_dh);
	if (r != 0)
		printk(KERN_ERR "Failed to register scsi device handler.");
	return r;
}
Пример #2
0
static int __init alua_init(void)
{
	int r;

	r = scsi_register_device_handler(&alua_dh);
	if (r != 0)
		printk(KERN_ERR "%s: Failed to register scsi device handler",
			ALUA_DH_NAME);
	return r;
}
Пример #3
0
static int __init clariion_init(void)
{
	int r;
	struct scsi_device_handler_aux *scsi_dh_aux = NULL;

	scsi_dh_aux = kzalloc(sizeof(struct scsi_device_handler_aux), GFP_KERNEL);
	if (!scsi_dh_aux)
		return -ENOMEM;
	scsi_dh_aux->match = clariion_match;

	r = scsi_register_device_handler(&clariion_dh, scsi_dh_aux);
	if (r != 0) {
		kfree(scsi_dh_aux);
		printk(KERN_ERR "%s: Failed to register scsi device handler.",
			CLARIION_NAME);
	}
	return r;
}
Пример #4
0
static int __init hp_sw_init(void)
{
	return scsi_register_device_handler(&hp_sw_dh);
}