Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, can anyone answer whether its possible to call system calls from kernel, i am bit struggling a bit here.... any response even yes or no would be a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4

    Calling SYSTEM CALLs from Kernel?


    Hi all,

    can anyone answer whether its possible to call system calls from kernel, i am bit struggling a bit here.... any response even yes or no would be a gr8 help !!!!

    Regards

  2. #2
    Just Joined! alex1983-0112's Avatar
    Join Date
    Apr 2008
    Location
    Russia
    Posts
    16
    You can try to use $0x80 interrupt in kernel space.

    Hope this help!

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4

    interrupt 0x80 for intel x86 ...and ARM tooo?

    Hi Alex,
    Many thanks for the reply .... does it applies to ARM core too, if not do u know what needs to be done with Arm

  4. #4
    Just Joined! alex1983-0112's Avatar
    Join Date
    Apr 2008
    Location
    Russia
    Posts
    16
    Quote Originally Posted by wildkrishh View Post
    Hi Alex,
    Many thanks for the reply .... does it applies to ARM core too, if not do u know what needs to be done with Arm
    Hi wildkrishh!

    Yes, you does. Because it is works on many platforms including ARM. But ARM absolutely another platform.
    So, what do you want to do? If not a secret...

  5. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4
    Hi Alex,

    no there is nothing secret here
    well my linux system has around 40millisec before it dies out ... an interrupt gets triggered reading from GPIO pin within kernel space, but i needed to do a "sync" before it dies .... i know i cant jump to the user space and call it becoz the system is already dead
    so was thinkin to do sync before the system actually looses all power.
    Do u hav any suggestion regarding this....
    Kind Regards

  6. #6
    Just Joined! alex1983-0112's Avatar
    Join Date
    Apr 2008
    Location
    Russia
    Posts
    16
    Hi wildkrishh!

    Sorry for answering delay.
    Well, maybe I don't understand something, but what are you understanding under "sync"?
    Well, I think that it help you: Linux arm PXA gpio programming. If not come here, please.

    P.S. My English not so good. But I glad to exchange experience with foreign colleague.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •