1 /* 2 ** Copyright 2008, Google Inc. 3 ** 4 ** Licensed under the Apache License, Version 2.0 (the "License"); 5 ** you may not use this file except in compliance with the License. 6 ** You may obtain a copy of the License at 7 ** 8 ** http://www.apache.org/licenses/LICENSE-2.0 9 ** 10 ** Unless required by applicable law or agreed to in writing, software 11 ** distributed under the License is distributed on an "AS IS" BASIS, 12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ** See the License for the specific language governing permissions and 14 ** limitations under the License. 15 */ 16 17 #ifndef RPC_IOCTL_H 18 #define RPC_IOCTL_H 19 20 #include <linux/ioctl.h> 21 22 struct rpcrouter_ioctl_server_args { 23 uint32_t prog; 24 uint32_t vers; 25 }; 26 27 #define RPC_ROUTER_IOCTL_MAGIC (0xC1) 28 29 #define RPC_ROUTER_IOCTL_GET_VERSION \ 30 _IOR(RPC_ROUTER_IOCTL_MAGIC, 0, unsigned int) 31 32 #define RPC_ROUTER_IOCTL_GET_MTU \ 33 _IOR(RPC_ROUTER_IOCTL_MAGIC, 1, unsigned int) 34 35 #define RPC_ROUTER_IOCTL_REGISTER_SERVER \ 36 _IOWR(RPC_ROUTER_IOCTL_MAGIC, 2, unsigned int) 37 38 #define RPC_ROUTER_IOCTL_UNREGISTER_SERVER \ 39 _IOWR(RPC_ROUTER_IOCTL_MAGIC, 3, unsigned int) 40 41 #endif /* RPC_IOCTL_H */ 42