Viagra, generically known as the medication , is a prescription medication primarily prescribed for managing male sexual dysfunction issues . It functions by promoting blood flow to the male reproductive area , which helps men to achieve and keep an uprightness sufficient for fulfilling activity . While typically safe when taken as instructed by a