blob: bd47119cdf1b19f167c27a847e289f396172674f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* Copyright (C) 2013-2015 Kay Sievers
* Copyright (C) 2013-2015 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Copyright (C) 2013-2015 Daniel Mack <daniel@zonque.org>
* Copyright (C) 2013-2015 David Herrmann <dh.herrmann@gmail.com>
* Copyright (C) 2013-2015 Linux Foundation
*
* kdbus is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*/
#ifndef __KDBUS_DEFAULTS_H
#define __KDBUS_DEFAULTS_H
#include <linux/kernel.h>
/* maximum size of message header and items */
#define KDBUS_MSG_MAX_SIZE SZ_8K
/* maximum number of memfd items per message */
#define KDBUS_MSG_MAX_MEMFD_ITEMS 16
/* max size of ioctl command data */
#define KDBUS_CMD_MAX_SIZE SZ_32K
/* maximum number of inflight fds in a target queue per user */
#define KDBUS_CONN_MAX_FDS_PER_USER 16
/* maximum message payload size */
#define KDBUS_MSG_MAX_PAYLOAD_VEC_SIZE SZ_2M
/* maximum size of bloom bit field in bytes */
#define KDBUS_BUS_BLOOM_MAX_SIZE SZ_4K
/* maximum length of well-known bus name */
#define KDBUS_NAME_MAX_LEN 255
/* maximum length of bus, domain, ep name */
#define KDBUS_SYSNAME_MAX_LEN 63
/* maximum number of matches per connection */
#define KDBUS_MATCH_MAX 4096
/* maximum number of queued messages from the same individual user */
#define KDBUS_CONN_MAX_MSGS 256
/* maximum number of well-known names per connection */
#define KDBUS_CONN_MAX_NAMES 256
/* maximum number of queued requests waiting for a reply */
#define KDBUS_CONN_MAX_REQUESTS_PENDING 128
/* maximum number of connections per user in one domain */
#define KDBUS_USER_MAX_CONN 1024
/* maximum number of buses per user in one domain */
#define KDBUS_USER_MAX_BUSES 16
#endif
|