chiark / gitweb /
optimize sysfs device and attribute cache
authorKay Sievers <kay.sievers@suse.de>
Sun, 29 Jan 2006 01:09:35 +0000 (02:09 +0100)
committerKay Sievers <kay.sievers@suse.de>
Sun, 29 Jan 2006 01:09:35 +0000 (02:09 +0100)
commit34f55103c5d451d247fc3b57579a6b3c1de0d58d
tree5b857a22e7f27864b254d7612508438e001f797b
parent3d94fb8742847afe8396f6dd38b16ff4e836611d
optimize sysfs device and attribute cache

Add negative cache for attributes and look for device in cache before doing
any sysfs access. (Three times speed up for a stupid 1000 rules SYSFS file).

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udev.h
udev_sysfs.c