How to read from serial in c ? (under linux)

I've done it..normal kernel module works and I know I cannot use gnu c library, if you look at the code I'm not using it at all.