Posted on 2005-03-31
Medium Priority
Last Modified: 2010-04-21
sir ,

   i m new to this driver programming . i m on 2nd chapter of
 "linux device drivers " .

 i tried to do the following :

*********************************************** TEST.C **********

 # define MODULE
 # define __KERNEL__

 # define value 50


 int init_module (void)

 void cleanup_module(void)


i cant compile this with

 gcc -c test.c

there is some errors with EXPORT_SYMBOL line .
 wat is the error in my program ?
how can i export the variabe value so that i can view
 it in /proc/ksyms?

Question by:karana
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 22

Expert Comment

ID: 13674972
Shouldn't this be MODULE_LICENSE?
Have you previously declared "value" ?

It would be useful if you gave more specific information than "there is some errors".  What did the compiler say?

Author Comment

ID: 13682539

sir ,

       thankx for ur comment . by trial and error menthos i found out that

         # define value 50
     should be
             int value 50

 then it works .

LVL 12

Expert Comment

ID: 13683807
Hi karana,
What are you trying to do in the first place?



Accepted Solution

PAQ_Man earned 0 total points
ID: 13893287
PAQed with points refunded (50)

Community Support Moderator

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question