/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2017 Facebook. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ #ifndef _UAPILINUX_NBD_NETLINK_H #define _UAPILINUX_NBD_NETLINK_H #define NBD_GENL_FAMILY_NAME … #define NBD_GENL_VERSION … #define NBD_GENL_MCAST_GROUP_NAME … /* Configuration policy attributes, used for CONNECT */ enum { … }; #define NBD_ATTR_MAX … /* * This is the format for multiple devices with NBD_ATTR_DEVICE_LIST * * [NBD_ATTR_DEVICE_LIST] * [NBD_DEVICE_ITEM] * [NBD_DEVICE_INDEX] * [NBD_DEVICE_CONNECTED] */ enum { … }; #define NBD_DEVICE_ITEM_MAX … enum { … }; #define NBD_DEVICE_ATTR_MAX … /* * This is the format for multiple sockets with NBD_ATTR_SOCKETS * * [NBD_ATTR_SOCKETS] * [NBD_SOCK_ITEM] * [NBD_SOCK_FD] * [NBD_SOCK_ITEM] * [NBD_SOCK_FD] */ enum { … }; #define NBD_SOCK_ITEM_MAX … enum { … }; #define NBD_SOCK_MAX … enum { … }; #define NBD_CMD_MAX … #endif /* _UAPILINUX_NBD_NETLINK_H */