Re: Help - header include issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the information.

Two follow-up questions if you don't mind.

Q1:
Why does Linux keep identical directories/files under
two different places, /usr/src/linux-<some_number>/
and /lib/modules/<some_number>/build/?

Q2:
What are the potential problems if modules include
header files under /usr/src/linux-<some_number>/?  We
can use the right lk number to include the right
header files under /usr/src/linux-<some_number>,
right?

Thanks,


T.


--- Arjan van de Ven <arjanv@redhat.com> wrote:
> 
> On Tue, May 25, 2004 at 03:29:44PM -0700, l x wrote:
> > 
> > But scsi.h under
> > /usr/src/linux-<something>/drivers/scsi/ is
> different
> > from scsi.h under
> > /lib/modules/linux-<something>/build/include/scsi/
> > 
> > Modules need to use the first scsi.h, correct?
> 
> in 2.4 they probably need
> /lib/modules/linux-<something>/build/drivers/scsi,
> in 2.6 they most certainly need the include/scsi
> one.
> NEVER should a module use a header from
> /usr/src/linux-<something>/ if you
> want to build for the currently running kernel.
> 

> ATTACHMENT part 2 application/pgp-signature 




	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux