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
The neck is the part of certain string instruments that projects from the main body and is the base of the fingerboard