One other structure that passes through the roof of the fossa is the posterior cutaneous nerve of the thigh, which descends through the thigh superficial to the hamstring muscles, passes through the roof of the popliteal fossa, and then continues inferiorly with the small saphenous vein to innervate skin on the upper half of the back of the leg.
The leg is that part of the lower limb between the knee joint and ankle joint (Fig. 6.84):