Respiratory function refers to the ability of the respiratory system to supply oxygen to the body and remove carbon dioxide. This involves various physiological processes including ventilation, gas exchange, and perfusion. The primary organs involved are the lungs, which contain alveoli where gas exchange occurs.