Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / uapi / linux / kcm.h
bloba5a530940b99c76e2c78b42b2b5f62b3f6fb23b4
1 /*
2 * Kernel Connection Multiplexor
4 * Copyright (c) 2016 Tom Herbert <tom@herbertland.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * User API to clone KCM sockets and attach transport socket to a KCM
11 * multiplexor.
14 #ifndef KCM_KERNEL_H
15 #define KCM_KERNEL_H
17 struct kcm_attach {
18 int fd;
19 int bpf_fd;
22 struct kcm_unattach {
23 int fd;
26 struct kcm_clone {
27 int fd;
30 #define SIOCKCMATTACH (SIOCPROTOPRIVATE + 0)
31 #define SIOCKCMUNATTACH (SIOCPROTOPRIVATE + 1)
32 #define SIOCKCMCLONE (SIOCPROTOPRIVATE + 2)
34 #define KCMPROTO_CONNECTED 0
36 /* Socket options */
37 #define KCM_RECV_DISABLE 1
39 #endif