Any of various devices that regulate the flow of gases, liquids, or loose materials through piping or through apertures by opening, closing, or obstructing ports or passageways.