Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Eclipse for Linux Kernel module development

I'm trying to configure Eclipse for developing Linux Kernel Modules under Ubuntu. So far I've added to Properties > Paths and Symbols > Includes > GNU C headers from directory /usr/src/'uname -r'/include but it doesn't remove all the Syntax error from my code.

After that, my code looks like this:

code after headers added to path

What else should I do to develop Kernel modules with pleasure?

like image 530
SP5RFD Avatar asked Mar 04 '14 09:03

SP5RFD


People also ask

What is module in Linux kernel?

Linux Kernel Modules. Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. A module can be configured as built-in or loadable.

How do I find the source code of a Linux kernel?

If the kernel source code is present in your system, you can find it under the /usr/src/linux-<Version> directory, where <Version> must be replaced with the source code kernel version you are dealing with. You also can find the last kernel source code at https://github.com/torvalds/linux.


1 Answers

If you're interested, those orange squigglies are actually indexer markers. Turn them off by going to window/preferences/general/editors/text editors/annotations, select c/c++indexer markers and uncheck 'text as'.

Also, this was posted on the Eclipse wiki: http://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source

like image 157
pjenney58 Avatar answered Sep 22 '22 14:09

pjenney58