How to call syscalls - SYSCALL or 0x80 interrupt
Hi, I came across this discussion in StackExchange <http://unix.stackexchange.com/questions/61891/linux-kernel-3-2-syscalls>. Does anyone have any idea on this?
Is in incorrect because the execve() call in the code is to the libc stub but not the actual syscall itself? On 3 June 2014 10:19, Greg KH <greg@kroah.com> wrote:
On Tue, Jun 03, 2014 at 09:45:33AM +0530, Dipanjan Das wrote:
Hi,
I came across this discussion in StackExchange. Does anyone have any
idea on
this?
Yes, the code looks correct, the question asked is incorrect :)
Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why?? Thanks!
What is the kernel version that your are using? If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1] Regards, Varka Bhadram [0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3 On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why??
Thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
The kernel version is 3.11.0-20-generic jinzhao@wingtech.com From: Varka Bhadram Date: 2014-06-03 16:20 To: kernelnewbies; jinzhao Subject: Re: can't find <asm/system.h> What is the kernel version that your are using? If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1] Regards, Varka Bhadram [0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3 On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote: Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why?? Thanks! _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- __________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
And I can find "system.h" in the path of " /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm ". jinzhao@wingtech.com From: jinzhao@wingtech.com Date: 2014-06-03 16:24 To: Varka Bhadram; kernelnewbies Subject: Re: Re: can't find <asm/system.h> The kernel version is 3.11.0-20-generic jinzhao@wingtech.com From: Varka Bhadram Date: 2014-06-03 16:20 To: kernelnewbies; jinzhao Subject: Re: can't find <asm/system.h> What is the kernel version that your are using? If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1] Regards, Varka Bhadram [0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3 On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote: Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why?? Thanks! _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- __________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
For which architecture you are compiling ? On June 3, 2014 at 1:58 PM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
And I can find "system.h" in the path of " /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm ".
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- jinzhao@wingtech.com
From: jinzhao@wingtech.com <mailto:jinzhao@wingtech.com> Date: 2014-06-03 16:24 To: Varka Bhadram <mailto:varkab@cdac.in> ; kernelnewbies <mailto:kernelnewbies@kernelnewbies.org> Subject: Re: Re: can't find <asm/system.h>
The kernel version is 3.11.0-20-generic
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- jinzhao@wingtech.com
From: Varka Bhadram <mailto:varkab@cdac.in> Date: 2014-06-03 16:20 To: kernelnewbies <mailto:kernelnewbies@kernelnewbies.org> ; jinzhao <mailto:jinzhao@wingtech.com> Subject: Re: can't find <asm/system.h>
What is the kernel version that your are using?
If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1]
Regards, Varka Bhadram
[0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3
On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why??
Thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------
__________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________
The message was checked by ESET NOD32 Antivirus.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
Hi Jinzhao, Did you specify the include path ( as /usr/src/linux-headers-3.11. 0-20-generic/arch/arm/ ) with -I option while compiling your code. Regards, Ayan Kumar Halder On Tue, Jun 3, 2014 at 2:05 PM, Varka Bhadram <varkab@cdac.in> wrote:
For which architecture you are compiling ?
On June 3, 2014 at 1:58 PM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
And I can find "system.h" in the path of " /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm ".
________________________________ jinzhao@wingtech.com
From: jinzhao@wingtech.com Date: 2014-06-03 16:24 To: Varka Bhadram; kernelnewbies Subject: Re: Re: can't find <asm/system.h> The kernel version is 3.11.0-20-generic
________________________________ jinzhao@wingtech.com
From: Varka Bhadram Date: 2014-06-03 16:20 To: kernelnewbies; jinzhao Subject: Re: can't find <asm/system.h> What is the kernel version that your are using?
If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1]
Regards, Varka Bhadram
[0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3
On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why??
Thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
__________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________
The message was checked by ESET NOD32 Antivirus.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi, Ayan Kumar Halder: I have changed the code to #include <asm/switch_io.h>, compile OK now. I'll test it as you say too. Thanks! jinzhao@wingtech.com From: AYAN KUMAR HALDER Date: 2014-06-03 19:01 To: Varka Bhadram CC: kernelnewbies; jinzhao Subject: Re: Re: can't find <asm/system.h> Hi Jinzhao, Did you specify the include path ( as /usr/src/linux-headers-3.11. 0-20-generic/arch/arm/ ) with -I option while compiling your code. Regards, Ayan Kumar Halder On Tue, Jun 3, 2014 at 2:05 PM, Varka Bhadram <varkab@cdac.in> wrote:
For which architecture you are compiling ?
On June 3, 2014 at 1:58 PM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
And I can find "system.h" in the path of " /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm ".
________________________________ jinzhao@wingtech.com
From: jinzhao@wingtech.com Date: 2014-06-03 16:24 To: Varka Bhadram; kernelnewbies Subject: Re: Re: can't find <asm/system.h> The kernel version is 3.11.0-20-generic
________________________________ jinzhao@wingtech.com
From: Varka Bhadram Date: 2014-06-03 16:20 To: kernelnewbies; jinzhao Subject: Re: can't find <asm/system.h> What is the kernel version that your are using?
If the kernel version > 3.3 #inclued asm/switch_to.h [0] else #include <asm/system.h> [1]
Regards, Varka Bhadram
[0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] : http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3
On June 3, 2014 at 11:53 AM "jinzhao@wingtech.com" <jinzhao@wingtech.com> wrote:
Dears: My system is ubuntu 12.04. In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why??
Thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
__________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________
The message was checked by ESET NOD32 Antivirus.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
------------------------------------------------------------------------------------------------------------------------------- [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. -------------------------------------------------------------------------------------------------------------------------------
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
__________ Information from ESET NOD32 Antivirus, version of virus signature database 9883 (20140602) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
On Tue, 03 Jun 2014 14:23:22 +0800, "jinzhao@wingtech.com" said:
In my code, I include the file <asm/system.h>, but when compiling the code, show the error as "can't find the file or directory asm/system.h". Why??
Probably because either: 1) Your Makefile isn't set up to use the Kbuild architecture, which should take care of all that for you when building an out-of-tree module. or 2) You haven't properly set up a kernel source tree to build against.
participants (6)
-
AYAN KUMAR HALDER -
Dipanjan Das -
Greg KH -
jinzhao@wingtech.com -
Valdis.Kletnieks@vt.edu -
Varka Bhadram