]> git.ipfire.org Git - thirdparty/systemd.git/blame - udevd.h
[PATCH] $local user
[thirdparty/systemd.git] / udevd.h
CommitLineData
7fafc032
KS
1/*
2 * udevd.h
3 *
4 * Userspace devfs
5 *
6 * Copyright (C) 2004 Ling, Xiaofeng <xiaofeng.ling@intel.com>
53921bfa 7 * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
7fafc032
KS
8 *
9 *
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.
13 *
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.
18 *
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.
22 *
23 */
24
a695feae 25#include "list.h"
33db4b8d 26
8e2229c4 27#define UDEV_MAGIC "udevd_" UDEV_VERSION
4ef51da9 28#define EVENT_TIMEOUT_SEC 10
53921bfa 29#define UDEVSEND_CONNECT_RETRY 20 /* x 100 millisec */
872344c4 30#define UDEVD_SOCK_PATH "udevd"
7fafc032
KS
31
32struct hotplug_msg {
53921bfa 33 char magic[20];
a695feae 34 struct list_head list;
35b7d88c 35 pid_t pid;
cdc60e8a 36 unsigned long long seqnum;
e5a2989e 37 long queue_time;
e964c2c0
KS
38 char action[ACTION_SIZE];
39 char devpath[DEVPATH_SIZE];
40 char subsystem[SUBSYSTEM_SIZE];
7fafc032 41};