dahdi-tools/xpp/perl_modules/Dahdi/Xpp
Oron Peled 3572bb5a13 xpp: sysfs access cleanups
With /proc/xpp code removed, some cleanup can be done.

* No need to search alternative attribute names, so xbus_attr_path() is
  redundant.

* Don't compose xbus sysfs directory in multiple code locations.
  Do it once in Xbus->new() and use the result ($xbus->sysfs_dir)

* Pass XPD directory strings directly to Xpd->new()
  - So we parse it for unit/subunit only in Xpd->new()

* Don't parse xbus sysfs name:
  - Toplevel scan, pass it as is to Xbus->new()
  - Xbus->new() deduce the xbus->num from the naming
    of Xpd's inside (nnⓂ️k) -- this is a hack until
    we add xbus number as an xbus sysfs attribute

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10494 17933a7a-c749-41c5-a318-cba88f637d49
2012-03-15 20:32:27 +00:00
..
Line.pm xpp: perl_modules: Remove /proc/xpp usage 2012-03-15 20:30:41 +00:00
Mpp.pm Import DAHDI-Tools r9159 2010-08-18 13:49:24 +00:00
Xbus.pm xpp: sysfs access cleanups 2012-03-15 20:32:27 +00:00
Xpd.pm xpp: sysfs access cleanups 2012-03-15 20:32:27 +00:00