The vent hole is a very small hole in the middle of your cap, on the underside. Have a look and you'll see it. It vents to the top part of the cap, which is on the other side of the rubber cap seal. It can get clogged from someone lining the tank and not keeping the cap on, or rust or gunk. But one way to diagnose it is to go for a short ride, then pull over and lift the cap up. If there is a shoosh of depressurization, it's a cap clog. The vent allows the gravity-fed fuel line to work properly. When it's clogged or obstructed, gas will flow but much more slowly -- meaning you can appear to run out of gas, sit for 5 minutes, and then it will start back up again. Fuel can't fill the bowls quickly enough for normal riding. You can also undo the cap so it's open (not wide open, just resting on the top of the neck) and ride around (carefully). If it doesn't stall, there you go.