headstock is part of a guitar.The main function of a headstock is to house the pegs or mechanism that holds the strings at the "head" of the instrument.
headstock are commonly used to tune the instrument by adjusting the tension of strings and, the pitch of sound they produce.