I created one process in Jquery, I want to make it as plugin

I created one process in Jquery, I want to make it as plugin

Anyone knows that? How to create a jquery plugin?