chiark / gitweb /
[PATCH] libsysfs changes for sysfsutils 0.3.0
authordsteklof@us.ibm.com <dsteklof@us.ibm.com>
Tue, 25 Nov 2003 07:47:43 +0000 (23:47 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:04 +0000 (21:13 -0700)
commitff44a6b0b7e98c9f696ee13c197d982819991de8
tree950a9ab261cb198dbb5a13c7f630b642d184ae47
parent36043f8418c8a0e8decb090c1ea22092fe9c976a
[PATCH] libsysfs changes for sysfsutils 0.3.0

Here's the patch to up the library to the sysfsutils-0_3_0 level. The
following changes:

1) adds class name to sysfs_class_device structure
2) adds bus to sysfs_device
3) gets rid of code that made assumptions as to bus addresses being
unique across buses, which isn't the case.

I still owe you:

1) change getpagesize->sysconf. This is in the CVS tree and part of other
changes we're currently testing. Patch will follow.
2) you need a function to get a sysfs_class_device's parent. We hadn't
considered class devices to have parents, the one example of a multilevel
is the block class. We will add this function and send the patch to you.
libsysfs/libsysfs.h
libsysfs/sysfs_bus.c
libsysfs/sysfs_class.c
libsysfs/sysfs_device.c
libsysfs/sysfs_driver.c
libsysfs/sysfs_utils.c