/* * Iterate over the root map * and call (*fn)() on the key * of all the nodes. * Finally throw away the root map. */ int root_keyiter(void (*fn)(char *,void *), void *arg) { if (root_map) { int c = mapc_keyiter(root_map, fn, arg); #ifdef notdef mapc_free(root_map); root_map = 0; #endif return c; } return 0; }
static void amfs_union_mounted(mntfs *mf) { int index; am_node *mp; amfs_mkcacheref(mf); /* * Having made the union mount point, * populate all the entries... */ for (mp = get_first_exported_ap(&index); mp; mp = get_next_exported_ap(&index)) { if (mp->am_mnt == mf) { /* return value from create_amfs_union_node is ignored by mapc_keyiter */ (void) mapc_keyiter((mnt_map *) mp->am_mnt->mf_private, create_amfs_union_node, mp); break; } } }