You can not unload a built-in module. Built in modules are compiled along with the kernel and loaded on kernel boot up. Only loadable module can be insmod
ed and rmmod
ed.
Also, lsmod
doesn't show you the in-built modules.
For this particular driver, look into this file: http://lxr.free-electrons.com/source/drivers/tty/tty_io.c
Before you go through that code, you might want to look into the tty
driver structure: http://www.linuxjournal.com/article/5896