lkml.org 
[lkml]   [2006]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Altix snsc: duplicate kobject fix
from: Greg Howard <ghoward@sgi.com>

This patch fixes Altix system controller (snsc) device names to
include the slot number of the blade whose associated system
controller is the target of the device interface. Including the
slot number avoids a problem we're currently having where slots
within the same enclosure are attempting to create multiple
kobjects with identical names.

The patch should apply cleanly to 2.6.17.

Signed-off-by: Greg Howard <ghoward@sgi.com>
---
--- a/linux/drivers/char/snsc.c 2006-04-21 10:19:06 -05:00
+++ b/linux/drivers/char/snsc.c 2006-04-20 14:55:20 -05:00
@@ -390,7 +390,8 @@ scdrv_init(void)
format_module_id(devnamep, geo_module(geoid),
MODULE_FORMAT_BRIEF);
devnamep = devname + strlen(devname);
- sprintf(devnamep, "#%d", geo_slab(geoid));
+ sprintf(devnamep, "^%d#%d", geo_slot(geoid),
+ geo_slab(geoid));

/* allocate sysctl device data */
scd = kzalloc(sizeof (struct sysctl_data_s),
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-04-21 17:53    [W:0.023 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site