Mechanism of hemostatic function of the blood