• R
    IB/core: Allow device-specific per-port sysfs files · 9a6edb60
    Ralph Campbell 提交于
    Add a new parameter to ib_register_device() so that low-level device
    drivers can pass in a pointer to a callback function that will be
    called for each port that is registered in sysfs.  This allows
    low-level device drivers to create files in
    
        /sys/class/infiniband/<hca>/ports/<N>/
    
    without having to poke through the internals of the RDMA sysfs handling.
    
    There is no need for an unregister function since the kobject
    reference will go to zero when ib_unregister_device() is called.
    Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
    Signed-off-by: NRoland Dreier <rolandd@cisco.com>
    9a6edb60
ehca_main.c 30.1 KB