[alsa-devel] asihpi driver -> kernel
Takashi Iwai
tiwai at suse.de
Wed Dec 19 14:36:22 CET 2007
At Wed, 19 Dec 2007 11:13:25 +1300,
Eliot Blennerhassett wrote:
>
> Takashi Iwai wrote:
>
> >>> - Global variables should have some unique prefix. The kernel code is
> >>> monolithc C, so they are really global and has no name space.
> >> Did you have a list?
> >> There are a few function names that don't start with HPI.
> >
> > Err, sorry, I meant global variables *and functions*.
>
> BTW is there any way to not export functions/variables that are used
> only inside the kernel module? (but used between object files that make
> up the module so cannot be made static)
Remember that a driver can be built in a kernel, not as a module.
> I.e. if the module was compiled as one huge sourcefile, almost
> everything could be static.
You can do it in that way, of course :)
Takashi
More information about the Alsa-devel
mailing list