39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * This file and its contents are supplied under the terms of the
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * Common Development and Distribution License ("CDDL"), version 1.0.
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * You may only use this file in accordance with the terms of version
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * 1.0 of the CDDL.
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * A full copy of the text of the CDDL should have accompanied this
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * source. A copy of the CDDL is also available via the Internet at
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * Copyright 2016 Joyent, Inc.
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney mdb_warn("dnlc walk doesn't support global walks\n");
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney dwp = mdb_zalloc(sizeof (dnlc_walk_t), UM_SLEEP);
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney if (mdb_readvar(&dwp->dw_hashsz, "nc_hashsz") == -1 ||
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney if (mdb_readvar(&dwp->dw_hash, "nc_hash") == -1) {
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney while (addr == dwp->dw_head || addr == NULL) {
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney if (mdb_vread(&hash, sizeof (hash), dwp->dw_head) == -1) {
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney if (mdb_vread(&addr, sizeof (uintptr_t), addr) == -1) {
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * This entry may have become bogus since acquiring the address
39f030b80b0794a689e3fad42f42c12612f88545Patrick Mooney * from its neighbor. Continue on if that is the case.