[openib-general] Re: [PATCH] Basic driver model/sysfs support

Roland Dreier roland at topspin.com
Fri Sep 3 07:32:01 PDT 2004


    Greg> At first glance this looks good.

    Greg> What does 'tree /sys/class/infiniband/' look like with this
    Greg> code?

pretty minimal:

    /sys/class/infiniband/
    `-- mthca0

Is it better style to set class_dev.dev in the low-level driver or in
our infiniband core layer when the low-level driver registers a
device?  With class_dev.dev set properly it's a little more
interesting:

    /sys/class/infiniband/
    `-- mthca0
        |-- device -> ../../../devices/pci0000:00/0000:00:02.0/0000:01:1f.0/0000:03:01.0/0000:04:00.0
        `-- driver -> ../../../bus/pci/drivers/ib_mthca

Thanks,
  Roland




More information about the general mailing list