Where can I get the exact source code of linux kernel version 3.5.0-17-generic which is shipped with Ubuntu 12.10 ?
If you are looking to just get the sources to the kernel that you are currently running you can:
apt-get source linux-image-$(uname -r)
source code for all ubuntu releases
Please check this
https://launchpad.net/ubuntu/+source/linux/3.5.0-17.28 the source code and the patches are available here available here. If you want generic source code then better look for it on