How to enable and use GPIO interrupts in Beaglebone Black ?

I am unable to find how to enable and use GPIO interrupt in Beaglebone Black and run a service routing if the GPIO was pressed.