The kidneys serve several primary functions related to regulating plasma volume and electrolyte balance. They filter blood to remove wastes and produce urine, while reabsorbing necessary water, electrolytes, and other substances. The complex nephron structure allows for selective reabsorption and secretion to maintain homeostasis. Glomerular filtration and tubular reabsorption/secretion precisely regulate water and electrolyte levels in the blood and production of urine. This helps the kidneys control plasma volume and composition.