Ventriculoperitoneal shunting is surgery to treat excess cerebrospinal fluid (CSF) in the cavities (ventricles) of the brain (hydrocephalus). During a cerebral shunt procedure, a flap is cut in the scalp and a small hole is drilled in the skull. A small catheter is passed into a ventricle of the brain.