Systemd/libsysfs
dsteklof@us.ibm.com 5d4754f195 [PATCH] pre-libsysfs-0.4.0 patch
I am sending you a pre-release patch. It's everything that's in our
current CVS tree. It adds the functionality you've been looking for. Please
play with this before checking it into your tree, I'd like to know if
it's ok with you or if you find problems. I have tested this out with
test.all and the perl regression test. Let me know what you think.

Still need to do more testing for our work and add some more functions
related to the changes.

I've gone into namedev.c and udev-add.c to make the necessary changes
in line with the library. I have not gone and edited any of the "extras".


Changes:

1) Libsysfs object structures work more as handles now, their included
directories or devices are labeled private. If you need attributes
from a sysfs_class_device, call the available function and don't access
the directory directly. Same holds true for a sysfs_class_device
sysfs_device. Do not access the link directly but call the function
sysfs_get_classdev_device() instead. We only populate entries upon
request, makes things faster and uses less memory.

2) Added sysfs_get_classdev_parent() as requested.

3) Changed getpagesize to sysconf.

4) Added sysfs_refresh_attributes function for refreshing views of
attribute lists. We still need to add refresh for links and subdirs. All
udev needs to do is keep calling sysfs_get_classdev_attr() and that will
internally call the refresh routine.
2005-04-26 21:13:07 -07:00
..
LGPL [PATCH] added libsysfs code from sysutils-0.1.1-071803 release 2005-04-26 21:01:39 -07:00
dlist.c [PATCH] make libsysfs build cleanly 2005-04-26 21:05:23 -07:00
dlist.h [PATCH] make libsysfs build cleanly 2005-04-26 21:05:23 -07:00
libsysfs.h [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs.h [PATCH] fix up some duplicated function compiler warnings in libsysfs 2005-04-26 21:13:05 -07:00
sysfs_bus.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs_class.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs_device.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs_dir.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs_driver.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00
sysfs_utils.c [PATCH] pre-libsysfs-0.4.0 patch 2005-04-26 21:13:07 -07:00