1. 03 Jul, 2013 1 commit
  2. 02 Apr, 2012 1 commit
  3. 05 Mar, 2012 1 commit
  4. 27 Feb, 2012 1 commit
  5. 31 Oct, 2011 1 commit
  6. 11 Oct, 2011 1 commit
  7. 25 Oct, 2010 1 commit
  8. 21 May, 2010 1 commit
    • Ralph Campbell's avatar
      IB/core: Allow device-specific per-port sysfs files · 9a6edb60
      Ralph Campbell authored
      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
      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: default avatarRalph Campbell <ralph.campbell@qlogic.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
  9. 19 Mar, 2010 1 commit
  10. 07 Mar, 2010 1 commit
  11. 15 Jun, 2009 1 commit
    • Greg Kroah-Hartman's avatar
      infiniband: remove driver_data direct access of struct device · 3f7c58a0
      Greg Kroah-Hartman authored
      In the near future, the driver core is going to not allow direct access
      to the driver_data pointer in struct device.  Instead, the functions
      dev_get_drvdata() and dev_set_drvdata() should be used.  These functions
      have been around since the beginning, so are backwards compatible with
      all older kernel versions.
      Cc: general@lists.openfabrics.org
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
  12. 04 Mar, 2009 1 commit
  13. 25 Feb, 2009 1 commit
    • Roland Dreier's avatar
      IB: Remove sysfs files before unregistering device · 9206dff1
      Roland Dreier authored
      Move the ib_device_unregister_sysfs() call from ib_dealloc_device() to
      ib_unregister_device().  The old code allows device unregister to
      proceed even if some sysfs files are open, which leaves a window where
      userspace can open a file before a device is removed but then end up
      reading the file after the device is removed, which leads to various
      kernel crashes either because the device data structure is freed or
      because the low-level driver code is gone after module removal.
      By not returning from ib_unregister_device() until after all sysfs
      entries are removed, we make sure that data structures and/or module
      code is not freed until after all sysfs access is done.
      Reported-by: default avatarJack Morgenstein <jackm@dev.mellanox.co.il>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
  14. 06 Jan, 2009 1 commit
  15. 29 Oct, 2008 2 commits
  16. 15 Jul, 2008 2 commits
    • Steve Wise's avatar
      RDMA/core: Add iWARP protocol statistics attributes in sysfs · 7f624d02
      Steve Wise authored
      This patch adds a sysfs attribute group called "proto_stats" under
      /sys/class/infiniband/$device/ and populates this group with protocol
      statistics if they exist for a given device.  Currently, only iWARP
      stats are defined, but the code is designed to allow InfiniBand
      protocol stats if they become available.  These stats are per-device
      and more importantly -not- per port.
      - Add union rdma_protocol_stats in ib_verbs.h.  This union allows
        defining transport-specific stats.  Currently only iwarp stats are
      - Add struct iw_protocol_stats to define the current set of iwarp
        protocol stats.
      - Add new ib_device method called get_proto_stats() to return protocol
      - Add logic in core/sysfs.c to create iwarp protocol stats attributes
        if the device is an RNIC and has a get_proto_stats() method.
      Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    • Roland Dreier's avatar
      RDMA: Remove subversion $Id tags · f3781d2e
      Roland Dreier authored
      They don't get updated by git and so they're worse than useless.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
  17. 19 Apr, 2008 1 commit
  18. 15 Feb, 2008 1 commit
  19. 24 Jan, 2008 2 commits
  20. 12 Oct, 2007 1 commit
    • Kay Sievers's avatar
      Driver core: change add_uevent_var to use a struct · 7eff2e7a
      Kay Sievers authored
      This changes the uevent buffer functions to use a struct instead of a
      long list of parameters. It does no longer require the caller to do the
      proper buffer termination and size accounting, which is currently wrong
      in some places. It fixes a known bug where parts of the uevent
      environment are overwritten because of wrong index calculations.
      Many thanks to Mathieu Desnoyers for finding bugs and improving the
      error handling.
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
  21. 11 Jul, 2007 1 commit
    • Tejun Heo's avatar
      sysfs: kill unnecessary attribute->owner · 7b595756
      Tejun Heo authored
      sysfs is now completely out of driver/module lifetime game.  After
      deletion, a sysfs node doesn't access anything outside sysfs proper,
      so there's no reason to hold onto the attribute owners.  Note that
      often the wrong modules were accounted for as owners leading to
      accessing removed modules.
      This patch kills now unnecessary attribute->owner.  Note that with
      this change, userland holding a sysfs node does not prevent the
      backing module from being unloaded.
      For more info regarding lifetime rule cleanup, please read the
      following message.
      (tweaked by Greg to not delete the field just yet, to make it easier to
      merge things properly.)
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
  22. 10 Jul, 2007 1 commit
  23. 24 Apr, 2007 1 commit
  24. 16 Feb, 2007 1 commit
  25. 22 Sep, 2006 2 commits
  26. 09 May, 2006 1 commit
  27. 20 Mar, 2006 2 commits
  28. 10 Jan, 2006 1 commit
  29. 04 Jan, 2006 1 commit
  30. 07 Nov, 2005 1 commit
  31. 02 Nov, 2005 1 commit
  32. 18 Oct, 2005 1 commit
  33. 07 Sep, 2005 1 commit
  34. 26 Aug, 2005 2 commits