1 /* 2 * This file is part of Portals, http://www.sf.net/projects/lustre/ 3 * 4 * Portals is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * Portals is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with Portals; if not, write to the Free Software 15 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 * 17 * header for lnet ioctl 18 */ 19 #ifndef _LNETCTL_H_ 20 #define _LNETCTL_H_ 21 22 #include "types.h" 23 24 #define LNET_DEV_ID 0 25 #define LNET_DEV_PATH "/dev/lnet" 26 #define LNET_DEV_MAJOR 10 27 #define LNET_DEV_MINOR 240 28 #define OBD_DEV_ID 1 29 #define OBD_DEV_NAME "obd" 30 #define OBD_DEV_PATH "/dev/" OBD_DEV_NAME 31 #define OBD_DEV_MAJOR 10 32 #define OBD_DEV_MINOR 241 33 #define SMFS_DEV_ID 2 34 #define SMFS_DEV_PATH "/dev/snapdev" 35 #define SMFS_DEV_MAJOR 10 36 #define SMFS_DEV_MINOR 242 37 38 int ptl_initialize(int argc, char **argv); 39 int jt_ptl_network(int argc, char **argv); 40 int jt_ptl_list_nids(int argc, char **argv); 41 int jt_ptl_which_nid(int argc, char **argv); 42 int jt_ptl_print_interfaces(int argc, char **argv); 43 int jt_ptl_add_interface(int argc, char **argv); 44 int jt_ptl_del_interface(int argc, char **argv); 45 int jt_ptl_print_peers(int argc, char **argv); 46 int jt_ptl_add_peer(int argc, char **argv); 47 int jt_ptl_del_peer(int argc, char **argv); 48 int jt_ptl_print_connections(int argc, char **argv); 49 int jt_ptl_disconnect(int argc, char **argv); 50 int jt_ptl_push_connection(int argc, char **argv); 51 int jt_ptl_print_active_txs(int argc, char **argv); 52 int jt_ptl_ping(int argc, char **argv); 53 int jt_ptl_mynid(int argc, char **argv); 54 int jt_ptl_add_uuid(int argc, char **argv); 55 int jt_ptl_add_uuid_old(int argc, char **argv); /* backwards compatibility */ 56 int jt_ptl_close_uuid(int argc, char **argv); 57 int jt_ptl_del_uuid(int argc, char **argv); 58 int jt_ptl_add_route(int argc, char **argv); 59 int jt_ptl_del_route(int argc, char **argv); 60 int jt_ptl_notify_router(int argc, char **argv); 61 int jt_ptl_print_routes(int argc, char **argv); 62 int jt_ptl_fail_nid(int argc, char **argv); 63 int jt_ptl_lwt(int argc, char **argv); 64 int jt_ptl_testprotocompat(int argc, char **argv); 65 int jt_ptl_memhog(int argc, char **argv); 66 67 int dbg_initialize(int argc, char **argv); 68 int jt_dbg_filter(int argc, char **argv); 69 int jt_dbg_show(int argc, char **argv); 70 int jt_dbg_list(int argc, char **argv); 71 int jt_dbg_debug_kernel(int argc, char **argv); 72 int jt_dbg_debug_daemon(int argc, char **argv); 73 int jt_dbg_debug_file(int argc, char **argv); 74 int jt_dbg_clear_debug_buf(int argc, char **argv); 75 int jt_dbg_mark_debug_buf(int argc, char **argv); 76 int jt_dbg_modules(int argc, char **argv); 77 int jt_dbg_panic(int argc, char **argv); 78 79 #endif 80