What would be the equivalent of attachInterrupt

What is the equivalent of doing this if I was to set the registers manually?
attachInterrupt(digitalPinToInterrupt(2), isrPin2, RISING);

is it

// attachInterrupt(digitalPinToInterrupt(2), isrPin2, RISING); is the same as this?
EICRA = 0;  
EICRA =  bit (ISC01) | bit(ISC00);    // RISING 
EIFR  =  bit (INTF0);    
EIMSK =  bit (INT0);

And what would the dettachInterrupt be?

I assume detaching an interrupt merely sets the relevant register to stop the interrupts happening.

The code for attachInterrupt() and detachInterrupt() is included with the Arduino IDE.

...R