A first gate is disposed within a second gate of a barrier for extending across a passageway of a residence. The second gate can be closed to, for example, minimize access of toddlers to the passageway, while the first gate can be opened to, for example, maximize access of small dogs to the passageway. The barrier includes a locking mechanism between the second gate and a frame of the barrier.