What is the meaning of Cotter?

A pin or wedge inserted through a slot to hold machine parts together.

A cotter pin.

To fasten with a cotter.

A peasant who performed labour in exchange for the right to live in a cottage.

Source: wiktionary.org