X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Finclude%2Flnet%2Fnidstr.h;h=b9e398e396e82c1bd758a6d7ffddd4d5c0d68676;hp=cf2efbec553ecef582620f0d2d5ce298db975a75;hb=907a321c9b9e2cd5f5ccf488cc516ba05dee0ad8;hpb=b2b005a51c88f01ab22525eb0f0845cde389b36a diff --git a/lnet/include/lnet/nidstr.h b/lnet/include/lnet/nidstr.h index cf2efbe..b9e398e 100644 --- a/lnet/include/lnet/nidstr.h +++ b/lnet/include/lnet/nidstr.h @@ -35,12 +35,15 @@ struct list_head; #define LNET_NIDSTR_SIZE 32 /* size of each one (see below for usage) */ /* 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_isknown_lnd(__u32 lnd); +char *libcfs_lnd2modname(__u32 lnd); +char *libcfs_lnd2str(__u32 lnd); +char *libcfs_lnd2str_r(__u32 lnd, char *buf, size_t buf_size); int libcfs_str2lnd(const char *str); char *libcfs_net2str(__u32 net); +char *libcfs_net2str_r(__u32 net, char *buf, size_t buf_size); char *libcfs_nid2str(lnet_nid_t nid); +char *libcfs_nid2str_r(lnet_nid_t nid, char *buf, size_t buf_size); __u32 libcfs_str2net(const char *str); lnet_nid_t libcfs_str2nid(const char *str); int libcfs_str2anynid(lnet_nid_t *nid, const char *str); @@ -51,7 +54,7 @@ int cfs_print_nidlist(char *buffer, int count, struct list_head *list); int cfs_match_nid(lnet_nid_t nid, struct list_head *list); bool cfs_nidrange_is_contiguous(struct list_head *nidlist); void cfs_nidrange_find_min_max(struct list_head *nidlist, char *min_nid, - char *max_nid, int nidstr_length); + char *max_nid, size_t nidstr_length); void libcfs_init_nidstrings(void); #endif /* _LNET_NIDSTRINGS_H */