A Sergeant might command "Get in your racks NOW!" if the troops were up partying (as much as possible) in the barracks. Like many slang terms it has no true grammatical usage.