summaryrefslogtreecommitdiff
path: root/udev_sysfs.c
AgeCommit message (Collapse)Author
2007-09-25fix debug output stringKay Sievers
2007-08-24set buffer size if strlcpy/strlcat indicate truncationMichael Morony
2007-06-04sysfs: skip unknown sysfs directoriesKay Sievers
2007-06-04sysfs: handle bus/class top-level directoriesKay Sievers
2007-06-02sysfs: change order of subsystem lookupKay Sievers
2007-06-02sysfs: add device lookup by $SUBSYSYTEM:$KERNELKay Sievers
2007-03-19update %n on netif name changeKay Sievers
2006-10-08first try "subsystem" link at a parent device, before guessingKay Sievers
2006-09-19udev_sysfs: unify symlink resolvingKay Sievers
2006-09-05udevinfo: do not show symlinks as attributes in --attribute-walkKay Sievers
2006-09-05let $attr{symlink} return the last element of the pathKay Sievers
Example for /block/sda: SUBSYSTEMS="scsi", ENV{COMMENT}="$attr{driver}" sets COMMENT=sd SUBSYSTEMS="pci", ENV{COMMENT}="$attr{driver}" sets COMMENT=ata_piix
2006-08-28update source file headersKay Sievers
2006-08-19consistent key naming to match only the event device or include all parent ↵Kay Sievers
devices This scheme is more consistent and makes it obvious if a match happens against the event device only, or the full chain of parent devices. The old key names are now: BUS -> SUBSYSTEMS ID -> KERNELS SYSFS -> ATTRS DRIVER -> DRIVERS Match keys for the event device: KERNEL SUBSYSTEM ATTR DRIVER (in a future release, for now the same as DRIVERS) Match keys for all devices along the parent device chain: KERNELS SUBSYSTEMS ATTRS DRIVERS ID, BUS, SYSFS are no longer mentioned in the man page but still work. DRIVER must be converted to DRIVERS to match the new scheme. For now, an error is logged, if DRIVER is used. In a future release, the DRIVER key behaviour will change.
2006-08-13udevd: read DRIVER from the environmentKay Sievers
2006-01-30add debug output to sysfs operationsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-29optimize sysfs device and attribute cacheKay Sievers
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>
2006-01-23Makefile: remove dynamic config file generationKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-20fixes udev build with -fpieOlivier Blin
Add missing includes and environ declaration.
2006-01-18scsi_id, usb_id: request device parent by subsystemKay Sievers
Request specific parents identified by subsystem and don't rely on a predefined sequence. Also let the devpath be longer than 72 chars, tsss ... Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-16prepare moving of /sys/class devices to /sys/devicesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12remove all built-in wait_for_sysfs logicKay Sievers
Most of the issues are fixed with the kernel we depend on, for the remaing ones see the RELEASE-NOTES for a special rule to add. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-29remove no longer needed waiting for "dev" fileKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-08-25add pci_express to bus listKay Sievers
Hopefully that wait_for_sysfs crap can go away some day... Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-22fix the fix and change the file to wait for to the "bus" linkKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-20prepare for module loading rules and add MODALIAS keyKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-04-26[PATCH] replace strncpy()/strncat() by strlcpy()/strlcat()kay.sievers@vrfy.org
2005-04-26[PATCH] kill stupid gcc4 warningkay.sievers@vrfy.org
2005-04-26[PATCH] wait_for_sysfs: add joydevkay.sievers@vrfy.org
2005-04-26[PATCH] add "serio" to bus listkay.sievers@vrfy.org
2005-04-26[PATCH] switch major/minor to dev_tkay.sievers@vrfy.org
2005-04-26[PATCH] fix -Wsign-compare warningskay.sievers@vrfy.org
2005-04-26[PATCH] I tried to compile udev 050plus with the GCC 4.0 snapshot 200412119 andtklauser@access.unizh.chbk
2005-04-26[PATCH] add class specific files for class/spi_transport and class/spi_hostkay.sievers@vrfy.org
2005-04-26[PATCH] prevent udev node creatinon for "class" registrationkay.sievers@vrfy.org
I've found a /dev/video4linux node and just realized, that libsysfs searches all subdirs for an attribute name. So it found /class/video4linux/video0/dev for the videodev class creation event /class/video4linux and created a node. Just ignore the SUBSYSTEM="class" events now.
2005-04-26[PATCH] add a class/fc_host file to the list of what to wait forkay.sievers@vrfy.org
2005-04-26[PATCH] add net/atml and class/ppdev to the wait_for_sysfs exception listkay.sievers@vrfy.org
2005-04-26[PATCH] add net/nlv* devices to the exception listkay.sievers@vrfy.org
2005-04-26[PATCH] add "pcmcia" and "fc_transport" to the wait_for_sysfs listskay.sievers@vrfy.org
2005-04-26[PATCH] rename udev_lib to udev_utils and dev_d to udev_multiplexkay.sievers@vrfy.org
2005-04-26[PATCH] remove my test codekay.sievers@vrfy.org
2005-04-26[PATCH] add support for /devices-devices without any file to wait forkay.sievers@vrfy.org
2005-04-26[PATCH] Patch from Alex Riesen <raa.lkml@gmail.com>kay.sievers@vrfy.org
> I just put const's at some places. It cut down data segments, but > increased code size. > Overall still smaller: > > -rwxr-xr-x 1 user users 50420 Nov 19 10:53 ../udev-046/udev > -rwxr-xr-x 1 user users 49556 Nov 19 10:53 udev > text data bss dec hex filename > 47245 968 22480 70693 11425 ../udev-046/udev > 48089 104 22064 70257 11271 udev > > Also, the instance of utsname in udev_lib.c is used only once.
2005-04-26[PATCH] add a bunch of busses to the list of what to wait forkay.sievers@vrfy.org
2005-04-26[PATCH] add ippp and bcrypt to the exception lists of wait_for_sysfskay.sievers@vrfy.org
2005-04-26[PATCH] don't wait for sysfs if the kernel(2.6.10-rc2) tells us what not to ↵kay.sievers@vrfy.org
expect Newer kernels will tell us if we should wait for the "device" or the "bus" link. So don't waste the time with our lists or wait for the timeout.
2005-04-26[PATCH] add i2c-dev to the list of devices without a buskay.sievers@vrfy.org
2005-04-26[PATCH] Add a bunch of devices without "device" symlinks.kay.sievers@vrfy.org
2005-04-26[PATCH] Add net/vmnet and class/zaptel to the list of devices without ↵kay.sievers@vrfy.org
physical device
2005-04-26[PATCH] add net/pan and net/bnep handlingkay.sievers@vrfy.org