MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_getops

Function vdev_getops

freebsd/contrib/openzfs/module/zfs/vdev.c:214–224  ·  view source on GitHub ↗

* Given a vdev type, return the appropriate ops vector. */

Source from the content-addressed store, hash-verified

212 * Given a vdev type, return the appropriate ops vector.
213 */
214static vdev_ops_t *
215vdev_getops(const char *type)
216{
217 vdev_ops_t *ops, **opspp;
218
219 for (opspp = vdev_ops_table; (ops = *opspp) != NULL; opspp++)
220 if (strcmp(ops->vdev_op_type, type) == 0)
221 break;
222
223 return (ops);
224}
225
226/* ARGSUSED */
227void

Callers 1

vdev_allocFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected