summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [PATCH] man page cleanupkay.sievers@vrfy.org2005-04-261-20/+19
| | | | | | Small cleanup of the wording in the udev. man page.
* [PATCH] put config info in db for netdevkay.sievers@vrfy.org2005-04-261-2/+2
| | | | | | | Small change, to put the config informations for handled network interfaces into the database.
* [PATCH] increase udevd event timeoutkay.sievers@vrfy.org2005-04-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | I have a very slow Bluetooth adapter hotplug event call, so we need to increase the event timeout to something larger than 6 seconds. Apr 1 02:54:08 pim udevsend[12119]: main: DEVPATH = '/class/tty/ttyUB0' Apr 1 02:54:08 pim udevsend[12119]: main: SEQNUM = '340' Apr 1 02:54:08 pim udevsend[12120]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1' Apr 1 02:54:08 pim udevsend[12120]: main: SEQNUM = '344' Apr 1 02:54:09 pim udevsend[12133]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1' Apr 1 02:54:09 pim udevsend[12133]: main: SEQNUM = '342' Apr 1 02:54:10 pim udevsend[12136]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.2' Apr 1 02:54:10 pim udevsend[12136]: main: SEQNUM = '343' Apr 1 02:54:13 pim udevsend[12141]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0' Apr 1 02:54:13 pim udevsend[12141]: main: SEQNUM = '341'
* [PATCH] udevstart fixkay.sievers@vrfy.org2005-04-261-2/+2
| | | | | | Sorry, udevstart needs a small cleanup after my recent copy/pastes.
* [PATCH] only generate udev.8 on the fly, not all other man pages.greg@kroah.com2005-04-261-2/+2
|
* [PATCH] update bk ignore list some more.greg@kroah.com2005-04-264-0/+0
|
* [PATCH] switch to generate the man pages during the normal build, not during ↵greg@kroah.com2005-04-261-2/+2
| | | | the install.
* [PATCH] convert udev.8.in to use @udevdir@ macro for make install.greg@kroah.com2005-04-261-4/+4
|
* [PATCH] first step of making man pages dynamically generated.greg@kroah.com2005-04-266-15/+25
| | | | | | Based on a an original patch from Olaf Hering <olh@suse.de>
* [PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the ↵greg@kroah.com2005-04-261-3/+8
| | | | Makefile
* [PATCH] tweak net_test a bit.greg@kroah.com2005-04-261-1/+1
|
* [PATCH] put netdev handling and dev.d/ in manpageskay.sievers@vrfy.org2005-04-263-17/+53
| | | | | | | Mention the recently added netdev handling and the dev.d/ directories in the man pages.
* [PATCH] fix some segfaults when running udevtest for network devices.greg@kroah.com2005-04-261-4/+4
|
* [PATCH] make a net_test test script using udevtest.greg@kroah.com2005-04-261-17/+5
|
* [PATCH] handle the subsytem if provided in udevtest.greg@kroah.com2005-04-261-1/+4
| | | | | | this is needed to test the /etc/dev.d/ stuff properly.
* [PATCH] add hotplug.dev script to handle renamed network devices.greg@kroah.com2005-04-262-0/+72
|
* [PATCH] add a bunch of network class devices to the test sysfs treegreg@kroah.com2005-04-2640-0/+40
|
* [PATCH] update RFC-dev.d docs due to DEVNODE to DEVNAME changegreg@kroah.com2005-04-261-6/+7
|
* [PATCH] DEVPATH for netdevkay.sievers@vrfy.org2005-04-267-19/+23
| | | | | | | | Here we change the DEVPATH for netdev's in the environment of the dev.d/ scripts to the name the device is renamed to. The original name doesn't exist in the kernel after rename.
* [PATCH] netdev - udevdb+dev.d changeskay.sievers@vrfy.org2005-04-2610-100/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is a patch to change the netdev handling in the database and for the dev.d/ calls. I applies on top of the udevd.patch, cause klibc has no sysinfo(). o netdev's are also put into our database now. I want this for the udevruler gui to get a list of all handled devices. All devices in the db are stamped with the system uptime value at the creation time. 'udevinfo -d' prints it. o the DEVPATH value is the key for udevdb, but if we rename a netdev, the name is replaced in the kernel, so we add the changed name to the db to match with the remove event. NOTE: The dev.d/ scripts still get the original name from the hotplug call. Should we replace DEVPATH with the new name too? o We now only add a device to the db, if we have successfully created the main node or successfully renamed a netdev. This is the main part of the patch, cause I needed to clean the retval passing trough all the functions used for node creation. o DEVNODE sounds a bit ugly for netdev's so I exported DEVNAME too. Can we change the name? o I've added a UDEV_NO_DEVD to possibly skip the script execution and used it in udev-test.pl. udevstart is the same horror now, if you have scripts with logging statements in dev.d/ it takes minutes to finish, can we skip the scripts here too? o The get_device_type() function is changed to be more strict, cause 'udevinfo -a -p /block/' gets a class device for it and tries to print the major/minor values. o bugfix, the RESULT value has now a working newline removal and a test for this case.
* [PATCH] udevd race conditions and performance, assorted cleanups - take 2kay.sievers@vrfy.org2005-04-267-54/+67
| | | | | | | | | | here is a patch on top of your nice improvements. I fixed the whitespace and it hopefully fixes the stupid timestamp bug in udevd. Some stupid OS sets the hwclock to localtime and linux changes it to UTC while starting. If any events are pending they may be delayed by the users time distance from UTC :) So we use the uptime seconds now.
* [PATCH] udevd race conditions and performance, assorted cleanupschris_friesen@sympatico.ca2005-04-263-33/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch covers a number of areas: 1) sysfs.h is fixed up to use the common dbg() macro. This fixes the case where DEBUG is defined but USE_LOG isn't. 2) udevstart.c is modified to include the proper headers, rather than getting them indirectly which can break depending on Makefile flags 3) udevd.c gets some major changes: a) I added a pipe from the signal handler. This fixes the race conditions that I mentioned earlier. Basically, the point of the pipe is to force the select() call to return immediately if a signal handler fired before we actually started the select() call. This then lets us run the appropriate code based on flags set in the signal handler proper. b) I added a number of flags to coalesce calls to common routines. This should make things slightly more efficient. c) since most calls will tend to come in with a sequence number larger than what has been received, I switched msg_queue_insert() to scan the msg_list backwards to improve performance. filename="udevd.diff"
* [PATCH] udevinfo patchkay.sievers@vrfy.org2005-04-261-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Fri, Mar 26, 2004 at 06:36:32PM +0500, Ananth N Mavinakayanahalli wrote: > On Fri, Mar 26, 2004 at 11:24:39AM +0100, Kay Sievers wrote: > > On Fri, Mar 26, 2004 at 11:21:29AM +0500, Ananth N Mavinakayanahalli wrote: > > > On Fri, Mar 26, 2004 at 04:47:35AM +0100, Kay Sievers wrote: > > > > On Fri, Mar 26, 2004 at 01:26:46AM +0100, Carl-Daniel Hailfinger wrote: > > > > > Greg KH wrote: > > > > > > On Tue, Mar 23, 2004 at 01:51:01PM -0800, Daniel Stekloff wrote: > > > > > > > > No, it breaks the net device handling. I think we should change > > > > libsysfs instead, not to return a class device for '/block', if > > > > we want to fix it. > > > > > > /sys/block is considered a sysfs "class" and not a class_device. So, > > > going by udevinfo's help, -p expects path to a class_device and _not_ > > > a class itself and hence option /sys/block with -p is not a valid query. > > > > > > Kay? > > > > Yes, it's invalid, but we shouldn't print major minor for a invalid > > path. sysfs_open_class_device_path("/block") returns a device. If this is > > the right behavior for libsysfs, I will change the get_device_type("/block") > > not to return a 'b'-type. > > Libsysfs validates the path given to it for opening a class_device to be > a valid directory; it does not however validate if the path is a valid > class_device path. So, in the case of udevinfo, a 'b' type should not > be returned if the path is just /sys/block or /sys/block/ This may prevent it.
* [PATCH] Add README for chassis_idatul.sabharwal@intel.com2005-04-261-0/+28
|
* [PATCH] fix SEGV in libsysfs/dlist.chare@suse.de2005-04-261-2/+2
| | | | | | | | | | | Hi all, Greg, libsysfs/dlist.c: _dlist_mark_move() is missing checks for empty lists and may (and indeed, does) crash when=20 called with empty dlists.
* [PATCH] clean up chassis_id coding style.greg@kroah.com2005-04-263-182/+166
|
* [PATCH] Add chassis_id program to extras directoryatul.sabharwal@intel.com2005-04-265-0/+279
|
* [PATCH] clean up the OSDL document formatting a bitgreg@kroah.com2005-04-262-213/+203
|
* [PATCH] add OSDL documentation for persistent namingmaryedie@osdl.org2005-04-262-0/+1227
|
* [PATCH] add netlink rules to devfs and gentoo rules files.greg@kroah.com2005-04-262-0/+28
|
* [PATCH] added USB device rules to rules files.greg@kroah.com2005-04-263-0/+15
|
* [PATCH] clean up the gentoo rules file a bit more, adding dri rules.greg@kroah.com2005-04-261-41/+10
|
* [PATCH] fix up udev.rules to handle oss rules better.greg@kroah.com2005-04-262-8/+12
| | | | | | Patch from Jordan <lx_xero@comcast.net>
* [PATCH] 023_bk markgreg@kroah.com2005-04-262-2/+2
|
* [PATCH] dev_d.c file sorting and cleanupkay.sievers@vrfy.org2005-04-268-169/+149
| | | | | | | | | | | | | | | | On Thu, Mar 25, 2004 at 02:52:13AM +0100, Kay Sievers wrote: > Please have look if it still works for you, I only did a very quick > test. Here is a unified version, with all the functions moved to udev_lib.c. We have a generic function now, to call a given fnct(char *) for every file ending with a specific suffix, sorted in lexical order. We use it to execute the dev.d/ files and read our rules.d/ files. The binary should be a bit smaller now. I've also changed it, to not do the dev.d/ exec for net devices.
* [PATCH] apply all_partitions rule to main block device onlykay.sievers@vrfy.org2005-04-261-7/+9
| | | | | | | Rules with NAME{all_partitions}= are now applied only to the parent of a block device. We no longer need to exclude the partitions or sg* devices.
* [PATCH] small ide-devfs.sh fixmd@Linux.IT2005-04-261-1/+1
| | | | | | The file may not exist and errors would be spewed on the console.
* [PATCH] fix udev.spec file for where udevtest should be placed.greg@kroah.com2005-04-261-1/+1
|
* [PATCH] v023 release023greg@kroah.com2005-04-263-3/+55
|
* [PATCH] create the /etc/dev.d/ directories in 'make install'greg@kroah.com2005-04-261-1/+8
|
* [PATCH] actually have udev run files ending in .dev in the /etc/dev.d/ ↵greg@kroah.com2005-04-261-1/+10
| | | | directory as documented.
* [PATCH] hmm, handle net devices with udev?kay.sievers@vrfy.org2005-04-268-108/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hmm, Arndt Bergmann sent a patch like this one a few weeks ago and I want to bring the question back, if we want to handle net device naming with udev. With this patch it is actually possible to specify something like this in udev.rules: KERNEL="dummy*", SYSFS{address}="00:00:00:00:00:00", SYSFS{features}="0x0", NAME="blind%n" KERNEL="eth*", SYSFS{address}="00:0d:60:77:30:91", NAME="private" and you will get: [root@pim udev.kay]# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 1500 30 0 0 0 0 0 0 1500 30 0 0 0 0 0 0 private: 278393 1114 0 0 0 0 0 0 153204 1468 0 0 0 0 0 0 sit0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 blind0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 The udevinfo program is also working: [root@pim udev.kay]# ./udevinfo -a -p /sys/class/net/private looking at class device '/sys/class/net/private': SYSFS{addr_len}="6" SYSFS{address}="00:0d:60:77:30:91" SYSFS{broadcast}="ff:ff:ff:ff:ff:ff" SYSFS{features}="0x3a9" SYSFS{flags}="0x1003" SYSFS{ifindex}="2" SYSFS{iflink}="2" SYSFS{mtu}="1500" SYSFS{tx_queue_len}="1000" SYSFS{type}="1" follow the class device's "device" looking at the device chain at '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0': BUS="pci" ID="0000:02:01.0" SYSFS{class}="0x020000" SYSFS{detach_state}="0" SYSFS{device}="0x101e" SYSFS{irq}="11" SYSFS{subsystem_device}="0x0549" SYSFS{subsystem_vendor}="0x1014" SYSFS{vendor}="0x8086" The matching device will be renamed to the given name. The device name will not be put into the udev database, cause the kernel renames the device and the sysfs name disappears. I like it, cause it plugs in nicely. We have all the naming features and sysfs queries and walks inside of udev. The sysfs timing races are already solved and the management tools are working for net devices too. nameif can only match the MAC address now. udev can match any sysfs value of the device tree the net device is connected to. But right, net devices do not have device nodes :)
* [PATCH] added RFC-dev.d document detailing how /etc/dev.d/ works.greg@kroah.com2005-04-261-0/+49
|
* [PATCH] fixed up udev.spec to handle selinux stuff properly now.greg@kroah.com2005-04-261-17/+13
|
* [PATCH] remove USE_DBUS and USE_SELINUX flags from the README as they are no ↵greg@kroah.com2005-04-261-15/+0
| | | | longer present.
* [PATCH] remove selinux stuff from the main Makefilegreg@kroah.com2005-04-261-8/+0
|
* [PATCH] move udev_selinux into extras/selinuxgreg@kroah.com2005-04-262-3/+61
|
* [PATCH] fix dbus build in the udev.spec file.greg@kroah.com2005-04-261-15/+14
|
* [PATCH] remove dbus stuff from main Makefilegreg@kroah.com2005-04-261-28/+2
| | | | | | Not needed now that it's in extras.
* [PATCH] move udev_dbus to extras/dbusgreg@kroah.com2005-04-263-3/+65
| | | | | | Should build now, but might have linking problems.