A pigeonhole is a small compartment in a dovecote or pigeon house where a single pigeon can roost or nest. The term is also used figuratively to describe a cramped space, or a narrow category into which someone or something is placed—for example, when a person is "pigeonholed" into a specific role.
Example: The pigeonholes in the dovecote were lined with straw to keep the birds comfortable.