Green’s Dictionary of Slang

tent peg n.1

[the shape, but note the Biblical story of Jael and Sisera, i.e. the penis as a weapon (cf. axe n. (2))]

the penis.

[UK]Farmer & Henley Sl. and Its Analogues.
[UK]Farmer Vocabula Amatoria (1966) 101: Échalas, m. The penis; ‘the tent-peg.’.