Skip to contentSkip to conversation

list_add() naming: why not list_add_head()?

Question Ziran Zhang 1 participant 1 message Jul 10 Kernel janitors

lore
Share & tools
lore
#0 lore raw

I noticed list_add() inserts at the head->next, but the name doesn't reflect that.
Why wasn't it called list_add_head()? Is there any historical or design reason?

Thanks for your time.

Regards,
Ziran Zhang