6 * Copyright (C) 2004 Ling, Xiaofeng <xiaofeng.ling@intel.com>
7 * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation version 2 of the License.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 675 Mass Ave, Cambridge, MA 02139, USA.
27 #define UDEV_MAGIC "udevd_" UDEV_VERSION
28 #define EVENT_TIMEOUT_SEC 10
29 #define UDEVD_SOCK_PATH "udevd"
30 #define SEND_WAIT_MAX_SECONDS 3
31 #define SEND_WAIT_LOOP_PER_SECOND 10
33 /* environment buffer, should match the kernel's size in lib/kobject_uevent.h */
34 #define HOTPLUG_BUFFER_SIZE 1024
35 #define HOTPLUG_NUM_ENVP 32
39 char envbuf[HOTPLUG_BUFFER_SIZE];
43 struct list_head list;
49 unsigned long long seqnum;
50 char *envp[HOTPLUG_NUM_ENVP];