This circuit allow to route power between two sources, for example a battery and a external power. Battery must to be connected on the top side (mosfet's drain) giving priority to the external source (botton side). Switches allow to test the circuit.
The resitor of 10K is to simulate the load.