Whamcloud - gitweb
LU-5396 lnet: make some functions static
[fs/lustre-release.git] / libcfs / include / libcfs / libcfs_ioctl.h
index eab645c..0b17167 100644 (file)
@@ -26,6 +26,8 @@
 /*
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright (c) 2013, 2014, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -108,7 +110,7 @@ struct libcfs_ioctl_handler {
 };
 
 #define DECLARE_IOCTL_HANDLER(ident, func)                     \
-       struct libcfs_ioctl_handler ident = {                   \
+       static struct libcfs_ioctl_handler ident = {            \
                /* .item = */ LIST_HEAD_INIT(ident.item),       \
                /* .handle_ioctl = */ func                      \
        }
@@ -139,6 +141,7 @@ struct libcfs_ioctl_handler {
 #define IOC_LIBCFS_PING                           _IOWR('e', 61, IOCTL_LIBCFS_TYPE)
 #define IOC_LIBCFS_DEBUG_PEER             _IOWR('e', 62, IOCTL_LIBCFS_TYPE)
 #define IOC_LIBCFS_LNETST                 _IOWR('e', 63, IOCTL_LIBCFS_TYPE)
+#define IOC_LIBCFS_LNET_FAULT             _IOWR('e', 64, IOCTL_LIBCFS_TYPE)
 /* lnd ioctls */
 #define IOC_LIBCFS_REGISTER_MYNID         _IOWR('e', 70, IOCTL_LIBCFS_TYPE)
 #define IOC_LIBCFS_CLOSE_CONNECTION       _IOWR('e', 71, IOCTL_LIBCFS_TYPE)
@@ -154,7 +157,7 @@ struct libcfs_ioctl_handler {
 
 
 /*
- * DLC Speicif IOCTL numbers.
+ * DLC Specific IOCTL numbers.
  * In order to maintain backward compatibility with any possible external
  * tools which might be accessing the IOCTL numbers, a new group of IOCTL
  * number have been allocated.