Lines Matching defs:__nv
246 * The '__nv += 0' at the end of the for() loop gets around a "comma or
248 * the '__nv += 0' can just be replaced with 'NULL', but gcc on Centos 7
251 #define __FOR_EACH_VDEV(__zhp, __nv, __func) { \
252 __nv = zpool_get_config(__zhp, NULL); \
253 VERIFY0(nvlist_lookup_nvlist(__nv, ZPOOL_CONFIG_VDEV_TREE, &__nv)); \
255 for (nvlist_t *__root_nv = __nv, *__state = (nvlist_t *)0; \
256 for_each_vdev_cb(&__state, __root_nv, __func, &__nv) == 1; \
257 __nv += 0)
259 #define FOR_EACH_VDEV(__zhp, __nv) \
260 __FOR_EACH_VDEV(__zhp, __nv, for_each_vdev_macro_helper_func)
266 #define FOR_EACH_REAL_LEAF_VDEV(__zhp, __nv) \
267 __FOR_EACH_VDEV(__zhp, __nv, for_each_real_leaf_vdev_macro_helper_func)