Whamcloud - gitweb
LU-8915 lnet: migrate LNet selftest group handling to Netlink
[fs/lustre-release.git] / lnet / selftest / console.c
index 1251960..ac26ad2 100644 (file)
@@ -222,8 +222,7 @@ lstcon_group_alloc(char *name, struct lstcon_group **grpp)
        return 0;
 }
 
-static void
-lstcon_group_addref(struct lstcon_group *grp)
+void lstcon_group_addref(struct lstcon_group *grp)
 {
        grp->grp_ref++;
 }
@@ -243,8 +242,7 @@ lstcon_group_drain(struct lstcon_group *grp, int keep)
        }
 }
 
-static void
-lstcon_group_decref(struct lstcon_group *grp)
+void lstcon_group_decref(struct lstcon_group *grp)
 {
        int i;
 
@@ -263,8 +261,7 @@ lstcon_group_decref(struct lstcon_group *grp)
                                  grp_ndl_hash[LST_NODE_HASHSIZE]));
 }
 
-static int
-lstcon_group_find(const char *name, struct lstcon_group **grpp)
+int lstcon_group_find(const char *name, struct lstcon_group **grpp)
 {
        struct lstcon_group *grp;
 
@@ -715,24 +712,6 @@ lstcon_group_refresh(char *name, struct list_head __user *result_up)
         return rc;
 }
 
-int
-lstcon_group_list(int index, int len, char __user *name_up)
-{
-       struct lstcon_group *grp;
-
-       LASSERT(index >= 0);
-       LASSERT(name_up != NULL);
-
-       list_for_each_entry(grp, &console_session.ses_grp_list, grp_link) {
-               if (index-- == 0) {
-                       return copy_to_user(name_up, grp->grp_name, len) ?
-                                           -EFAULT : 0;
-               }
-       }
-
-       return -ENOENT;
-}
-
 static int
 lstcon_nodes_getent(struct list_head *head, int *index_p,
                    int *count_p, struct lstcon_node_ent __user *dents_up)