Lines Matching defs:share
58 * Add share to cache
61 * share : pointer to nvlist containing share properties
64 * SA_OK : share added successfully
65 * SA_DUPLICATE_NAME : share with same name already exists in cache
70 sacache_share_add(nvlist_t *share)
78 return (ops->sac_share_add(share));
82 * Update a share in the cache
85 * share : pointer to nvlist containing share properties
88 * SA_OK : share added successfully
90 * SA_SHARE_NOT_FOUND: share is not in cache
94 sacache_share_update(nvlist_t *share)
102 return (ops->sac_share_update(share));
106 * Remove share from cache
109 * sh_name : name of share to remove
112 * SA_OK : share was removed successfully
113 * SA_SHARE_NOT_FOUND: share not found in cache
148 * find share in cache
151 * sh_name : name of share, cannot be NULL
154 * share : place holder for returned share
157 * share : pointer to found share, NULL if not found
160 * SA_OK : share found and returned in 'share'
161 * SA_SHARE_NOT_FOUND: share not found in cache
165 * Search the cache for a share that matches input parameters.
172 nvlist_t **share)
180 return (ops->sac_share_lookup(sh_name, sh_path, proto, share));
188 * proto : protocol type of share to retrieve
192 * share : pointer to newly allocated handle
224 * share : place holder for returned share
227 * share : pointer to newly allocated share
230 * SA_OK : share was returned successfully.
236 * It is the responsibility of the caller to free the share memory
240 sacache_share_find_next(void *hdl, nvlist_t **share)
248 return (ops->sac_share_find_next(hdl, share));
281 * proto : protocol type of share to retrieve
285 * share : pointer to newly allocated handle
315 * share : place holder for returned share
318 * share : pointer to newly allocated share
321 * SA_OK : share was returned successfully.
326 * It is the responsibility of the caller to free the share memory
330 sacache_share_ds_find_get(void *hdl, nvlist_t **share)
338 return (ops->sac_share_ds_find_get(hdl, share));