Sysfs Device Attributes: Subdirectory under subdirectory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I want to create subdirectory under subdirectory in sysfs
for a device. 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
                
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?

Thanks in advance.

Regards
Himanshu

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux