summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
AgeCommit message (Collapse)Author
2007-08-29print warning for invalid TEST operationsKay Sievers
2007-08-16do not ignore dynamic rule if it is the last one in the listKay Sievers
2007-07-16allow SYMLINK== matchKay Sievers
2007-07-15handle dynamic rules created in /dev/.udev/rules.d/Kay Sievers
2007-07-14add udev_rules_run() to handle RUN listKay Sievers
2007-07-14add option to RUN key to ignore the return value of the programKay Sievers
2007-06-22allow to disable the replacement of unusual charactersKay Sievers
2007-06-03add TEST=="<file>" keyKay Sievers
2007-06-02events for "bus" and "class" registration must be matched as "subsystem"Kay Sievers
2007-06-01fix "do not access parent" warning for ATTR{}Kay Sievers
2007-03-16add link_priority to rule options, and store it in databaseKay Sievers
2007-02-25fix udev attribute names with a colonTheodoros V. Kalamatianos
2007-02-24update DRIVER== changesKay Sievers
2007-02-01exclude parent devices from DRIVER== matchKay Sievers
We have DRIVERS= for this.
2006-12-08rename config "filename" to "dir"Kay Sievers
2006-09-20fix spelling in deprecation warningKay Sievers
Found by Andreas Hanke.
2006-09-18don't print PHYSDEV* warnings for old WAIT_FOR_SYSFS rulesKay Sievers
2006-09-18warn if a PHYSEDV* key, the "device" link, or a parent attribute is usedKay Sievers
2006-08-28update source file headersKay Sievers
2006-08-20always expect KEY{value} on ATTR, ATTRS, ENV keysKay Sievers
2006-08-20fix typo in SUBSYSTEMS key parsingKay Sievers
2006-08-20introduce ATTR{file}="value" to set sysfs attributesKay Sievers
2006-08-20skip rule, if too may keys of the same type are usedKay 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-13don't report an error on overlong comment linesKay Sievers
2006-06-07remove MODALIAS key and substitutionKay Sievers
2006-05-01add more warnings for invalid key operationsKay Sievers
2006-04-24allow NAME=="value" to check for already assigned valueKay Sievers
2006-03-21fix spelling error in debug stringKay Sievers
2006-01-26find programs in /lib/udev for IMPORT if {program} is not givenKay 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-07move some logging from dbg() to info()Marco d'Itri
2005-11-07add strerror() to error logsMarco d'Itri
2005-11-07let NAME="" supress node creation, but do RUN keysKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-05remove precompiled rules optionKay Sievers
It was a workaround for speed up udev "coldplug", where ~800 events happened a second time during bootup. No need for it with the rules aleady parsed in the daemon. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27fix the new warnings I asked forKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15cleanup some debug output and move to info level + unify select() loopsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08add flag for reading of precompiled rulesKay Sievers
Rules can be precompiled and stored on disk for initramfs, to avoid parsing the rules with every event again and again. Also the OWNER and GROUP names are already resolved to numerical values in the compiled rules. This flag is used for the upcoming move of the rules parsing into udevd: If the real root is mounted udevd is started and parses the rules only once. The event processes will inherit the already parsed rules from the daemon, so we want to ignore any precompiled rules and use the real rules files and watch the filesystem for changes to reload the rules automatically. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08allow clean shutdown of udevdKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08switch some strlcpy's to memcpyKay Sievers
strlcpy counts the sourec string lengt and is therefore not suitable to copy a defined length of characters from one string to another. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22move code to its own filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-17add padding to rules structureKay Sievers
Some architectures really want well alingned structures. Thanks to Jim Gifford <maillist@jg555.com> for help finding it. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-16allow rules to have labels and skip to next labelKay Sievers
This will allow us to have whole blocks of rules to skip conditionally. The following section creates the node "yes": GOTO="TEST" NAME="no" NAME="no2", LABEL="NO" NAME="yes", LABEL="TEST" NAME="no3"
2005-07-12IMPORT: add {parent} to import the persistent data of the parent deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12remember mapped rules stateKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix typo in group assignmentKay Sievers
Thanks to: Georgi Georgiev
2005-07-07fix default-name handling and NAME="" rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07add WAIT_FOR_SYSFS key to loop until a file in sysfs arrivesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06don't resolve OWNER, GROUP on precompile if string contains %, $Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-05pack parsed rules listKay Sievers
This cuts down our 600 rules file to 98 kb instead of 1.9 Mb memory or file-size with precompiled rules. Signed-off-by: Kay Sievers <kay.sievers@suse.de>