| udevd.h | | udevd.h | |
| | | | |
| skipping to change at line 26 | | skipping to change at line 26 | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 675 Mass Ave, Cambridge, MA 02139, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #include "list.h" | | #include "list.h" | |
| | | | |
| #define UDEV_MAGIC "udevd_" UDEV_VERSION | | #define UDEV_MAGIC "udevd_" UDEV_VERSION | |
| #define UDEVD_SOCK_PATH "/org/kernel/udev/udevd" | | #define UDEVD_SOCK_PATH "/org/kernel/udev/udevd" | |
|
| #define UDEVSEND_WAIT_MAX_SECONDS 3 | | | |
| #define UDEVSEND_WAIT_LOOP_PER_SECOND 10 | | | |
| | | | |
| #define UDEVD_PRIORITY -4 | | #define UDEVD_PRIORITY -4 | |
| #define UDEV_PRIORITY -2 | | #define UDEV_PRIORITY -2 | |
| | | | |
| #define EVENT_QUEUE_DIR ".udev/queue" | | #define EVENT_QUEUE_DIR ".udev/queue" | |
| #define EVENT_FAILED_DIR ".udev/failed" | | #define EVENT_FAILED_DIR ".udev/failed" | |
| #define EVENT_SEQNUM ".udev/uevent_seqnum" | | #define EVENT_SEQNUM ".udev/uevent_seqnum" | |
| | | | |
| /* maximum limit of forked childs */ | | /* maximum limit of forked childs */ | |
| #define UDEVD_MAX_CHILDS 64 | | #define UDEVD_MAX_CHILDS 64 | |
| /* start to throttle forking if maximum number of running childs in our ses
sion is reached */ | | /* start to throttle forking if maximum number of running childs in our ses
sion is reached */ | |
| #define UDEVD_MAX_CHILDS_RUNNING 16 | | #define UDEVD_MAX_CHILDS_RUNNING 16 | |
| | | | |
| /* environment buffer, should match the kernel's size in lib/kobject_uevent
.h */ | | /* environment buffer, should match the kernel's size in lib/kobject_uevent
.h */ | |
| #define UEVENT_BUFFER_SIZE 2048 | | #define UEVENT_BUFFER_SIZE 2048 | |
| #define UEVENT_NUM_ENVP 64 | | #define UEVENT_NUM_ENVP 64 | |
| | | | |
| enum udevd_msg_type { | | enum udevd_msg_type { | |
| UDEVD_UNKNOWN, | | UDEVD_UNKNOWN, | |
|
| UDEVD_UEVENT_UDEVSEND, | | | |
| UDEVD_UEVENT_NETLINK, | | UDEVD_UEVENT_NETLINK, | |
| UDEVD_STOP_EXEC_QUEUE, | | UDEVD_STOP_EXEC_QUEUE, | |
| UDEVD_START_EXEC_QUEUE, | | UDEVD_START_EXEC_QUEUE, | |
| UDEVD_SET_LOG_LEVEL, | | UDEVD_SET_LOG_LEVEL, | |
| UDEVD_SET_MAX_CHILDS, | | UDEVD_SET_MAX_CHILDS, | |
| UDEVD_RELOAD_RULES, | | UDEVD_RELOAD_RULES, | |
| }; | | }; | |
| | | | |
| struct udevd_msg { | | struct udevd_msg { | |
| char magic[32]; | | char magic[32]; | |
| | | | |
End of changes. 2 change blocks. |
| 3 lines changed or deleted | | 0 lines changed or added | |
|