First of all, create a header file somename.h for your system call and place it in arch/um/include as shown in listing 1.
Then, write out the implementation somename.c of your system call in arch/um/kernel as shown in listing 2.
Finally, modify the respective Makefile in arch/um/kernel and add somename.o to the list of build targets.