In a more limited sense, it refers to a person stationed in an office of the bakufu (Japanese feudal government headed by a shogun) who stood guard for the seii taishogun (literally, "great general who subdues the barbarians") and his palace.
狭義においては幕府に詰めて征夷大将軍及び御所の警固にあたる者を指す。