The sheriff shall provide officers to attend the courts within his jurisdiction while such courts are in session as the respective judges may require. The sheriff, or the superintendent of a regional jail or jail farm, shall receive into the jail facility all persons committed by the order of such courts, or under process issuing therefrom, and all persons committed by any other lawful authority.
Va. Code § 53.1-119