How do CPAP machines work?

A sleep apnea machine provides pressurised air in your throat via an air pump that is attached to a mask that covers your nose or nostrils, or sometimes the mouth. The air pump and mask are linked by a tube that is attached to an air flow generating machine.