mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-19 02:28:04 +07:00
increase kernel uevent buffer size
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
f61f78a76e
commit
7d1e179f86
2
udevd.c
2
udevd.c
@ -621,7 +621,7 @@ static struct uevent_msg *get_netlink_msg(void)
|
||||
struct uevent_msg *msg;
|
||||
int bufpos;
|
||||
ssize_t size;
|
||||
static char buffer[UEVENT_BUFFER_SIZE + 512];
|
||||
static char buffer[UEVENT_BUFFER_SIZE+512];
|
||||
char *pos;
|
||||
|
||||
size = recv(uevent_netlink_sock, &buffer, sizeof(buffer), 0);
|
||||
|
4
udevd.h
4
udevd.h
@ -38,8 +38,8 @@
|
||||
#define UDEVD_MAX_CHILDS_RUNNING 16
|
||||
|
||||
/* environment buffer, should match the kernel's size in lib/kobject_uevent.h */
|
||||
#define UEVENT_BUFFER_SIZE 1024
|
||||
#define UEVENT_NUM_ENVP 32
|
||||
#define UEVENT_BUFFER_SIZE 2048
|
||||
#define UEVENT_NUM_ENVP 64
|
||||
|
||||
enum udevd_msg_type {
|
||||
UDEVD_UNKNOWN,
|
||||
|
Loading…
Reference in New Issue
Block a user