Merge tag 'xtensa-20180225' of git://github.com/jcmvbkbc/linux-xtensa
[cris-mirror.git] / include / uapi / linux / kcm.h
blob01361ea359c4b6cf5f145adf1e6fb788ca08f722
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3 * Kernel Connection Multiplexor
5 * Copyright (c) 2016 Tom Herbert <tom@herbertland.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2
9 * as published by the Free Software Foundation.
11 * User API to clone KCM sockets and attach transport socket to a KCM
12 * multiplexor.
15 #ifndef KCM_KERNEL_H
16 #define KCM_KERNEL_H
18 struct kcm_attach {
19 int fd;
20 int bpf_fd;
23 struct kcm_unattach {
24 int fd;
27 struct kcm_clone {
28 int fd;
31 #define SIOCKCMATTACH (SIOCPROTOPRIVATE + 0)
32 #define SIOCKCMUNATTACH (SIOCPROTOPRIVATE + 1)
33 #define SIOCKCMCLONE (SIOCPROTOPRIVATE + 2)
35 #define KCMPROTO_CONNECTED 0
37 /* Socket options */
38 #define KCM_RECV_DISABLE 1
40 #endif