There are different meanings of the word function. Function means celebration, some job, some work, it is also used in mathematics to show a relationship involving variables. It also means function of a thing which mean it's role and natural activity or the purpose.
Synonym for the word function which starts from 's' is called service.