The function of the musculature of the esophagus and stomach in the esophagogastric sphincter mechanism.