Lines Matching defs:ops
38 sa_cache_ops_t *ops;
40 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
41 if ((ops == NULL) || (ops->sac_init == NULL))
44 return (ops->sac_init(hdl));
50 sa_cache_ops_t *ops;
52 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
53 if (ops != NULL && ops->sac_fini != NULL)
54 ops->sac_fini(hdl);
72 sa_cache_ops_t *ops;
74 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
75 if ((ops == NULL) || (ops->sac_share_add == NULL))
78 return (ops->sac_share_add(share));
96 sa_cache_ops_t *ops;
98 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
99 if ((ops == NULL) || (ops->sac_share_update == NULL))
102 return (ops->sac_share_update(share));
119 sa_cache_ops_t *ops;
121 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
122 if ((ops == NULL) || (ops->sac_share_remove == NULL))
125 return (ops->sac_share_remove(sh_name));
138 sa_cache_ops_t *ops;
140 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
141 if ((ops == NULL) || (ops->sac_flush == NULL))
144 return (ops->sac_flush());
174 sa_cache_ops_t *ops;
176 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
177 if ((ops == NULL) || (ops->sac_share_lookup == NULL))
180 return (ops->sac_share_lookup(sh_name, sh_path, proto, share));
209 sa_cache_ops_t *ops;
211 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
212 if ((ops == NULL) || (ops->sac_share_find_init == NULL))
215 return (ops->sac_share_find_init(sh_path, proto, hdl));
242 sa_cache_ops_t *ops;
244 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
245 if ((ops == NULL) || (ops->sac_share_find_next == NULL))
248 return (ops->sac_share_find_next(hdl, share));
267 sa_cache_ops_t *ops;
269 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
270 if ((ops == NULL) || (ops->sac_share_find_fini == NULL))
273 return (ops->sac_share_find_fini(hdl));
300 sa_cache_ops_t *ops;
302 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
303 if ((ops == NULL) || (ops->sac_share_ds_find_init == NULL))
306 return (ops->sac_share_ds_find_init(dataset, proto, hdl));
332 sa_cache_ops_t *ops;
334 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
335 if ((ops == NULL) || (ops->sac_share_ds_find_get == NULL))
338 return (ops->sac_share_ds_find_get(hdl, share));
357 sa_cache_ops_t *ops;
359 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
360 if ((ops == NULL) || (ops->sac_share_ds_find_fini == NULL))
363 return (ops->sac_share_ds_find_fini(hdl));
369 sa_cache_ops_t *ops;
371 ops = (sa_cache_ops_t *)saplugin_find_ops(SA_PLUGIN_CACHE, 0);
372 if ((ops == NULL) || (ops->sac_share_validate_name == NULL))
375 return (ops->sac_share_validate_name(sh_name, flags));