Whamcloud - gitweb
LU-13004 ptlrpc: Allow BULK_BUF_KIOV to accept a kvec
[fs/lustre-release.git] / lnet / selftest / console.h
index 08f199c..09cd0e8 100644 (file)
 #ifndef __LST_CONSOLE_H__
 #define __LST_CONSOLE_H__
 
+#include <linux/uaccess.h>
 
 #include <libcfs/libcfs.h>
-#include <lnet/lnet.h>
 #include <lnet/lib-types.h>
-#include <lnet/lnetst.h>
+#include <uapi/linux/lnet/lnetst.h>
 #include "selftest.h"
 #include "conrpc.h"
 
@@ -53,7 +53,7 @@ struct lstcon_node {
         int                  nd_ref;         /* reference count */
         int                  nd_state;       /* state of the node */
         int                  nd_timeout;     /* session timeout */
-        cfs_time_t           nd_stamp;       /* timestamp of last replied RPC */
+       ktime_t                 nd_stamp;       /* last RPC reply timestamp */
        struct lstcon_rpc       nd_ping;        /* ping rpc */
 };
 
@@ -256,6 +256,8 @@ extern int lstcon_test_add(char *batch_name, int type, int loop,
                           void *param, int paramlen, int *retp,
                           struct list_head __user *result_up);
 
+int lstcon_ioctl_entry(struct notifier_block *nb,
+                      unsigned long cmd, void *vdata);
 int lstcon_console_init(void);
 int lstcon_console_fini(void);