* How to call syscalls - SYSCALL or 0x80 interrupt @ 2014-06-03 4:15 Dipanjan Das 2014-06-03 4:49 ` Greg KH 0 siblings, 1 reply; 12+ messages in thread From: Dipanjan Das @ 2014-06-03 4:15 UTC (permalink / raw) To: kernelnewbies 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/6d14c9e6/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* How to call syscalls - SYSCALL or 0x80 interrupt 2014-06-03 4:15 How to call syscalls - SYSCALL or 0x80 interrupt Dipanjan Das @ 2014-06-03 4:49 ` Greg KH 2014-06-03 5:33 ` Dipanjan Das 0 siblings, 1 reply; 12+ messages in thread From: Greg KH @ 2014-06-03 4:49 UTC (permalink / raw) To: kernelnewbies 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 :) ^ permalink raw reply [flat|nested] 12+ messages in thread
* How to call syscalls - SYSCALL or 0x80 interrupt 2014-06-03 4:49 ` Greg KH @ 2014-06-03 5:33 ` Dipanjan Das 2014-06-03 5:43 ` Greg KH 0 siblings, 1 reply; 12+ messages in thread From: Dipanjan Das @ 2014-06-03 5:33 UTC (permalink / raw) To: kernelnewbies 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 :) > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/638fa5ab/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* How to call syscalls - SYSCALL or 0x80 interrupt 2014-06-03 5:33 ` Dipanjan Das @ 2014-06-03 5:43 ` Greg KH 2014-06-03 6:23 ` can't find <asm/system.h> jinzhao at wingtech.com 0 siblings, 1 reply; 12+ messages in thread From: Greg KH @ 2014-06-03 5:43 UTC (permalink / raw) To: kernelnewbies On Tue, Jun 03, 2014 at 11:03:25AM +0530, Dipanjan Das wrote: > > Is in incorrect because the execve() call in the code is to the libc stub but > not the actual syscall itself? Yes. ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 5:43 ` Greg KH @ 2014-06-03 6:23 ` jinzhao at wingtech.com 2014-06-03 7:50 ` Varka Bhadram 2014-06-03 12:29 ` Valdis.Kletnieks at vt.edu 0 siblings, 2 replies; 12+ messages in thread From: jinzhao at wingtech.com @ 2014-06-03 6:23 UTC (permalink / raw) To: kernelnewbies 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! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/06506c64/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 6:23 ` can't find <asm/system.h> jinzhao at wingtech.com @ 2014-06-03 7:50 ` Varka Bhadram 2014-06-03 8:24 ` jinzhao at wingtech.com 2014-06-03 12:29 ` Valdis.Kletnieks at vt.edu 1 sibling, 1 reply; 12+ messages in thread From: Varka Bhadram @ 2014-06-03 7:50 UTC (permalink / raw) To: kernelnewbies 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 at 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 at 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. ------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/5f0d3c8a/attachment-0001.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 7:50 ` Varka Bhadram @ 2014-06-03 8:24 ` jinzhao at wingtech.com 2014-06-03 8:28 ` jinzhao at wingtech.com 0 siblings, 1 reply; 12+ messages in thread From: jinzhao at wingtech.com @ 2014-06-03 8:24 UTC (permalink / raw) To: kernelnewbies The kernel version is 3.11.0-20-generic jinzhao at 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 at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/fbffaf92/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 8:24 ` jinzhao at wingtech.com @ 2014-06-03 8:28 ` jinzhao at wingtech.com 2014-06-03 8:35 ` Varka Bhadram 0 siblings, 1 reply; 12+ messages in thread From: jinzhao at wingtech.com @ 2014-06-03 8:28 UTC (permalink / raw) To: kernelnewbies And I can find "system.h" in the path of " /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm ". jinzhao at 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 at 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 at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/b865221d/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 8:28 ` jinzhao at wingtech.com @ 2014-06-03 8:35 ` Varka Bhadram 2014-06-03 10:31 ` AYAN KUMAR HALDER 0 siblings, 1 reply; 12+ messages in thread From: Varka Bhadram @ 2014-06-03 8:35 UTC (permalink / raw) To: kernelnewbies For which architecture you are compiling ? On June 3, 2014 at 1:58 PM "jinzhao at 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 at wingtech.com > > > From: jinzhao at 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 at 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 at 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 at 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 <http://www.eset.com> > _______________________________________________ Kernelnewbies mailing list Kernelnewbies at 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. ------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/1a08be5c/attachment-0001.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 8:35 ` Varka Bhadram @ 2014-06-03 10:31 ` AYAN KUMAR HALDER 2014-06-04 7:37 ` jinzhao at wingtech.com 0 siblings, 1 reply; 12+ messages in thread From: AYAN KUMAR HALDER @ 2014-06-03 10:31 UTC (permalink / raw) To: kernelnewbies 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 at 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 at wingtech.com > > From: jinzhao at 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 at 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 at 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 at 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 > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at 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 at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 10:31 ` AYAN KUMAR HALDER @ 2014-06-04 7:37 ` jinzhao at wingtech.com 0 siblings, 0 replies; 12+ messages in thread From: jinzhao at wingtech.com @ 2014-06-04 7:37 UTC (permalink / raw) To: 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 at 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 at 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 at wingtech.com > > From: jinzhao at 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 at 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 at 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 at 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 > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140604/2decc42c/attachment.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* can't find <asm/system.h> 2014-06-03 6:23 ` can't find <asm/system.h> jinzhao at wingtech.com 2014-06-03 7:50 ` Varka Bhadram @ 2014-06-03 12:29 ` Valdis.Kletnieks at vt.edu 1 sibling, 0 replies; 12+ messages in thread From: Valdis.Kletnieks at vt.edu @ 2014-06-03 12:29 UTC (permalink / raw) To: kernelnewbies On Tue, 03 Jun 2014 14:23:22 +0800, "jinzhao at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 848 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140603/59e3dc5a/attachment-0001.bin ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-06-04 7:37 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-03 4:15 How to call syscalls - SYSCALL or 0x80 interrupt Dipanjan Das 2014-06-03 4:49 ` Greg KH 2014-06-03 5:33 ` Dipanjan Das 2014-06-03 5:43 ` Greg KH 2014-06-03 6:23 ` can't find <asm/system.h> jinzhao at wingtech.com 2014-06-03 7:50 ` Varka Bhadram 2014-06-03 8:24 ` jinzhao at wingtech.com 2014-06-03 8:28 ` jinzhao at wingtech.com 2014-06-03 8:35 ` Varka Bhadram 2014-06-03 10:31 ` AYAN KUMAR HALDER 2014-06-04 7:37 ` jinzhao at wingtech.com 2014-06-03 12:29 ` Valdis.Kletnieks at vt.edu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).