What is the function of the brush holder in the alternator?

The brush holder in an alternator keeps the brushes held to slip rings with spring pressure (or commutators in generators or some motors) which provide electrical contact to electromagnets in the spinning rotor. By varying the electrical current through the brushes to the rotor magnets, you can adjust the power output of the alternator as needed.