driver creating directories under a device entry

From: Ben Dooks
Date: Tue Jan 13 2009 - 18:27:50 EST


I have a driver which uses sysfs_create_dir() to create a set of
directories under the device sysfs directory to bundle up attributes
that are added common for each sub-part of the device.

Firstly, is this considered a problem

Secondly, sysfs_create_dir() is not exported so the driver cannot
currently be built as a module. Would a patch to export sysfs_create_dir
be acceptable?

--
Ben (ben@xxxxxxxxx, http://www.fluff.org/)

'a smiley only costs 4 bytes'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/