Reputation: 663
I am learning to make a simple system call from this website.
When i go to my "/usr/src" directory, I see 2 folders
1) Linux
2) Linux-Source-2.6.39.4
To which one should i make changes in order to make my system call ?
Upvotes: 0
Views: 136
Reputation: 34563
Neither. Download a fresh copy of the kernel source code, extract it into your home directory, and do your development work there using your normal user account. You only need root to install the kernel after you compile it.
The root-owned files in /usr/src
are probably associated with the stock kernel that came with your system, and shouldn't be used for development. Especially since you'd have to do your development as root, just to have write permission.
Upvotes: 2