Prepare Gunpowder Mix: Dry roast toor dal, fried chana dal, pepper, red chillies, urad dal, garlic, coconut powder, sesame seeds, and curry leaves. Blend into a coarse powder.
Cook Rice with Gunpowder Mix: In a pan, heat oil, add onions, green chillies, and the prepared gunpowder mix. Add cooked basmati rice, mix well, and serve hot.