document the find_all_servers function

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2011-07-02 10:33:19 +10:00
parent 552c766578
commit 9c4212bf55
1 changed files with 14 additions and 0 deletions

View File

@ -955,10 +955,24 @@ off_t nfs_get_current_offset(struct nfsfh *nfsfh);
struct nfs_server_list {
struct nfs_server_list *next;
char *addr;
};
/*
* Sync find_local_servers(<server>)
* This function will probe all local networks for NFS server. This function will
* block for one second while awaiting for all nfs servers to respond.
*
* Function returns
* NULL : something failed
*
* struct nfs_server_list : a linked list of all discovered servers
*
* returned data must be freed by nfs_free_srvr_list(srv);
*/
struct nfs_server_list *nfs_find_local_servers(void);
void free_nfs_srvr_list(struct nfs_server_list *srv);