Detect which pin triggered the interrupt

Is there a way to attached one single generic interrupt routine to multiple pins and be able to detect in the interrupt routine which pin triggered it?

Is there a way to attached one single generic interrupt routine to multiple pins and be able to detect in the interrupt routine which pin triggered it?

That depends on the type of interrupt. If you are talking about pin change interrupts, yes.

If you are talking about external interrupts, and you KNOW that only one pin at a time can trigger the handler, then yes. But, if you are using external interrupts, that is generally not something you can know. If you can, interrupts are probably not necessary.