aboutsummaryrefslogtreecommitdiffstats
path: root/udev_sysfs.c
AgeCommit message (Collapse)AuthorFilesLines
2008-07-30delete all Makefiles and move udev source to udev/Kay Sievers1-509/+0
2008-04-20logging: add trailing newline to all stringsKay Sievers1-26/+26
2008-03-14sysfs: depend on "subsystem" linkKay Sievers1-23/+4
2007-09-25fix debug output stringKay Sievers1-1/+1
2007-08-24set buffer size if strlcpy/strlcat indicate truncationMichael Morony1-0/+2
2007-06-04sysfs: skip unknown sysfs directoriesKay Sievers1-8/+12
2007-06-04sysfs: handle bus/class top-level directoriesKay Sievers1-16/+16
2007-06-02sysfs: change order of subsystem lookupKay Sievers1-8/+7
2007-06-02sysfs: add device lookup by $SUBSYSYTEM:$KERNELKay Sievers1-0/+92
2007-03-19update %n on netif name changeKay Sievers1-1/+0
2006-10-08first try "subsystem" link at a parent device, before guessingKay Sievers1-32/+41
2006-09-19udev_sysfs: unify symlink resolvingKay Sievers1-46/+36
2006-09-05udevinfo: do not show symlinks as attributes in --attribute-walkKay Sievers1-20/+29
2006-09-05let $attr{symlink} return the last element of the pathKay Sievers1-16/+40
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 Sievers1-4/+2
2006-08-19consistent key naming to match only the event device or include all parent ↵Kay Sievers1-4/+4
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 Sievers1-2/+5
2006-01-30add debug output to sysfs operationsKay Sievers1-4/+14
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-29optimize sysfs device and attribute cacheKay Sievers1-26/+44
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 Sievers1-1/+1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-20fixes udev build with -fpieOlivier Blin1-0/+1
Add missing includes and environ declaration.
2006-01-18scsi_id, usb_id: request device parent by subsystemKay Sievers1-0/+13
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 Sievers1-7/+19
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers1-0/+345
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 Sievers1-298/+0
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 Sievers1-250/+60
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-08-25add pci_express to bus listKay Sievers1-0/+1
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 Sievers1-27/+27
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-20prepare for module loading rules and add MODALIAS keyKay Sievers1-27/+27
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-04-26[PATCH] replace strncpy()/strncat() by strlcpy()/strlcat()kay.sievers@vrfy.org1-4/+6
2005-04-26[PATCH] kill stupid gcc4 warningkay.sievers@vrfy.org1-1/+1
2005-04-26[PATCH] wait_for_sysfs: add joydevkay.sievers@vrfy.org1-0/+1
2005-04-26[PATCH] add "serio" to bus listkay.sievers@vrfy.org1-0/+1
2005-04-26[PATCH] switch major/minor to dev_tkay.sievers@vrfy.org1-0/+17
2005-04-26[PATCH] fix -Wsign-compare warningskay.sievers@vrfy.org1-1/+1
2005-04-26[PATCH] I tried to compile udev 050plus with the GCC 4.0 snapshot 200412119 andtklauser@access.unizh.chbk1-4/+4
2005-04-26[PATCH] add class specific files for class/spi_transport and class/spi_hostkay.sievers@vrfy.org1-0/+2
2005-04-26[PATCH] prevent udev node creatinon for "class" registrationkay.sievers@vrfy.org1-0/+1
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.org1-0/+1
2005-04-26[PATCH] add net/atml and class/ppdev to the wait_for_sysfs exception listkay.sievers@vrfy.org1-0/+2
2005-04-26[PATCH] add net/nlv* devices to the exception listkay.sievers@vrfy.org1-0/+1
2005-04-26[PATCH] add "pcmcia" and "fc_transport" to the wait_for_sysfs listskay.sievers@vrfy.org1-0/+2
2005-04-26[PATCH] rename udev_lib to udev_utils and dev_d to udev_multiplexkay.sievers@vrfy.org1-1/+1
2005-04-26[PATCH] remove my test codekay.sievers@vrfy.org1-1/+0
2005-04-26[PATCH] add support for /devices-devices without any file to wait forkay.sievers@vrfy.org1-1/+7
2005-04-26[PATCH] Patch from Alex Riesen <raa.lkml@gmail.com>kay.sievers@vrfy.org1-16/+16
> 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.org1-0/+22
2005-04-26[PATCH] add ippp and bcrypt to the exception lists of wait_for_sysfskay.sievers@vrfy.org1-0/+2
2005-04-26[PATCH] don't wait for sysfs if the kernel(2.6.10-rc2) tells us what not to ↵kay.sievers@vrfy.org1-25/+38
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.org1-0/+1
2005-04-26[PATCH] Add a bunch of devices without "device" symlinks.kay.sievers@vrfy.org1-0/+16
2005-04-26[PATCH] Add net/vmnet and class/zaptel to the list of devices without ↵kay.sievers@vrfy.org1-0/+2
physical device
2005-04-26[PATCH] add net/pan and net/bnep handlingkay.sievers@vrfy.org1-0/+2
2005-04-26[PATCH] switch wait for bus_file to stat() instead of open()kay.sievers@vrfy.org1-10/+17
2005-04-26[PATCH] expose sysfs functions for sharing itkay.sievers@vrfy.org1-0/+387
This patch exposes the wait_for_sysfs functions to all possible users, so we need to maintain only one list of exceptions. The last list is hereby removed from udev.c.