CDP_ACTIVE
if ((cdp->cdp_flags & CDP_ACTIVE) == 0)
KASSERT((cdp->cdp_flags & (CDP_ACTIVE | CDP_ON_ACTIVE_LIST)) == 0,
(de->de_cdp->cdp_flags & CDP_ACTIVE) == 0)
if ((cleanup || !(cdp->cdp_flags & CDP_ACTIVE)) &&
if (!(cdp->cdp_flags & CDP_ACTIVE)) {
KASSERT((cdp->cdp_flags & CDP_ACTIVE), ("Bogons, I tell ya'!"));
cdp->cdp_flags |= (CDP_ACTIVE | CDP_ON_ACTIVE_LIST);
cdp->cdp_flags &= ~CDP_ACTIVE;
if (de->de_cdp->cdp_flags & CDP_ACTIVE)
(de->de_cdp->cdp_flags & CDP_ACTIVE) == 0)
if (!(cdp->cdp_flags & CDP_ACTIVE) && cdp->cdp_inuse == 0) {
if (!(de->de_cdp->cdp_flags & CDP_ACTIVE)) {
CDP_FLAG(CDP_ACTIVE);