Hood Ajar Switch
WARNING: This page does not describe the selected car, but rather 8 other vehicles, including the 2012 GMC Yukon XL, 2012 GMC Yukon, 2012 Chevrolet Tahoe, 2012 Chevrolet Suburban, and 2012 Chevrolet Avalanche. However, it is still accessible from the selected car via links, so may be relevant.
The hood switch provides status of the hood to the BCM for RVS purposes. The switch is integrated into the hood latch assembly. The hood ajar switch provides 2 separate inputs to the BCM. These separate inputs allow the BCM to actively monitor for a hood ajar switch fault.