Wash and Soak barnyard millet for atleast 15 to 20 mins. After 20 mins, drain the water and keep aside.
Heat a thick bottom kadhai or pan, add coconut oil, mustard seeds, urad dal, chana dal, green chillies, hing, curry leaves.
Once mustard seed crackles, add water and salt to taste.
Once the water starts boiling, reduce the flame and slowly add the soaked and drained barnyard millet. Keep mixing while you add the millets.
Now add the grated coconut and keep mixing it. The millets would thicken up after a few minutes.
Once it forms a thick mass, switch off the flame and let it cool slightly.
Meanwhile prepare a steamer for steaming the kozhukattais.
Shape the kozhukattai and place them in the hot steamer. Steam them for atleast 10 minutes until soft. Serve immediately with a side dish of your choice.