The pupil works together with the iris as an aperture which can regulate the light influx in the eye. The pupil reflex controls light influx directly via bilateral contraction of the iris muscles and therefore by the pupil size.
Source: Tierarztpraxis Dres. Schaub