Re: Macro calling kernel function
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 29 Jul 2005 02:02:10 GMT
"David" <know_devig@xxxxxxxxxxx> writes:
> My problem is, I have C file and .h file in my driver
> If I define this macro in C file it compiles and links, no problem
> But I define same macro in .h file it throws compile error ..
> undeclared identifier for function name
> I tired including header file for the function but :(
> whats the reason behind that.
We can't guess what the problem might be with the information you've
given us. Show us some code and the *exact* error message you're
getting, and we might be able to help.
Whatever problem you're having with the macro definition, you would
have the same problem if you removed the macro definition and manually
expanded any references to the macro. There is no relationship
between macros and kernel functions. It's almost like asking whether
you can write a function call using emacs.
(And there are no "kernel functions" in standard C.)
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- References:
- Macro calling kernel function
- From: David
- Re: Macro calling kernel function
- From: Walter Roberson
- Re: Macro calling kernel function
- From: David
- Macro calling kernel function
- Prev by Date: Re: Macro calling kernel function
- Next by Date: apparent 4 GB memory limit for brk() in solaris 8 on some hardware...?
- Previous by thread: Re: Macro calling kernel function
- Next by thread: apparent 4 GB memory limit for brk() in solaris 8 on some hardware...?
- Index(es):
Relevant Pages
|