Juniper Networks interview question

what does the kernel do when it receives a trap