Whamcloud - gitweb
LU-1778 libcfs: add a service that prints a nidlist
[fs/lustre-release.git] / libcfs / include / libcfs / libcfs_private.h
index 42f1bc5..7557c62 100644 (file)
@@ -537,19 +537,21 @@ int cfs_percpt_atomic_summary(atomic_t **refs);
 #define CLASSERT(cond) do {switch(42) {case (cond): case 0: break;}} while (0)
 
 /* support decl needed both by kernel and liblustre */
-int         libcfs_isknown_lnd(int type);
-char       *libcfs_lnd2modname(int type);
-char       *libcfs_lnd2str(int type);
-int         libcfs_str2lnd(const char *str);
-char       *libcfs_net2str(__u32 net);
-char       *libcfs_nid2str(lnet_nid_t nid);
-__u32       libcfs_str2net(const char *str);
-lnet_nid_t  libcfs_str2nid(const char *str);
-int         libcfs_str2anynid(lnet_nid_t *nid, const char *str);
-char       *libcfs_id2str(lnet_process_id_t id);
-void        cfs_free_nidlist(cfs_list_t *list);
-int         cfs_parse_nidlist(char *str, int len, cfs_list_t *list);
-int         cfs_match_nid(lnet_nid_t nid, cfs_list_t *list);
+int             libcfs_isknown_lnd(int type);
+char           *libcfs_lnd2modname(int type);
+char           *libcfs_lnd2str(int type);
+int             libcfs_str2lnd(const char *str);
+char           *libcfs_net2str(__u32 net);
+char           *libcfs_nid2str(lnet_nid_t nid);
+__u32           libcfs_str2net(const char *str);
+lnet_nid_t      libcfs_str2nid(const char *str);
+int             libcfs_str2anynid(lnet_nid_t *nid, const char *str);
+char           *libcfs_id2str(lnet_process_id_t id);
+void            cfs_free_nidlist(struct list_head *list);
+int             cfs_parse_nidlist(char *str, int len, struct list_head *list);
+int             cfs_print_nidlist(char *buffer, int count,
+                                  struct list_head *list);
+int             cfs_match_nid(lnet_nid_t nid, struct list_head *list);
 
 /** \addtogroup lnet_addr
  * @{ */
@@ -578,12 +580,6 @@ int         cfs_match_nid(lnet_nid_t nid, cfs_list_t *list);
 # define CFS_CURRENT_TIME time(0)
 #endif
 
-/* --------------------------------------------------------------------
- * Light-weight trace
- * Support for temporary event tracing with minimal Heisenberg effect.
- * All stuff about lwt are put in arch/kp30.h
- * -------------------------------------------------------------------- */
-
 struct libcfs_device_userstate
 {
        int             ldu_memhog_pages;
@@ -690,6 +686,7 @@ enum {
         VIBLND    = 11,
         MXLND     = 12,
         GNILND    = 13,
+       GNIIPLND  = 14,
 };
 
 #endif