On Fri, Jan 29, 2010 at 12:12:31AM +0530, Himanshu Chauhan wrote: > Dear all, > > I want to create subdirectory under subdirectory in sysfs > for a device. Ick, don't. > For example, if vhci_hcd is my device I want > the following hierarchy: > > vhci_hcd > | > +--> status > | > +--->0 > | | > | +--> status > | | > | +--> speed > | | > | +--> device id > | | > | +--> socket > | | > | +--> busid > .... > .... > .... > | > +--->N > | > +--> status > | > +--> speed > | > +--> device id > | > +--> socket > | > +--> busid No, you really do not want this. Why do you feel that you would want to create something that does not fit into the current driver/device model of the kernel? In short, what specifically are you trying to convey here? > So, how do I create subdirectories 0 to N under > status? I created attribute groups from 0 to N, > how do I attach it to status and then in turn, > status to vhci_hcd? What does these 0-N subdirectories represent? What does 'status' represent? Why would status have subdirectories? And why in that subdirectory would you have another file called status? totally confused, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ