How to track down sys_reboot function in Linux kernel for ARM architecture

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












We have Beaglebone Black based custom board, with Linux 4.4.
I wanted to track down the low level function corresponding to the reboot() system call.



I am able to see sys_reboot() in include/uapi/asm-generic/unistd.h however I am not able to get to definition of the sys_reboot function.



Where can I find the definition of sys_reboot in the kernel source?







share|improve this question


























    up vote
    1
    down vote

    favorite












    We have Beaglebone Black based custom board, with Linux 4.4.
    I wanted to track down the low level function corresponding to the reboot() system call.



    I am able to see sys_reboot() in include/uapi/asm-generic/unistd.h however I am not able to get to definition of the sys_reboot function.



    Where can I find the definition of sys_reboot in the kernel source?







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      We have Beaglebone Black based custom board, with Linux 4.4.
      I wanted to track down the low level function corresponding to the reboot() system call.



      I am able to see sys_reboot() in include/uapi/asm-generic/unistd.h however I am not able to get to definition of the sys_reboot function.



      Where can I find the definition of sys_reboot in the kernel source?







      share|improve this question














      We have Beaglebone Black based custom board, with Linux 4.4.
      I wanted to track down the low level function corresponding to the reboot() system call.



      I am able to see sys_reboot() in include/uapi/asm-generic/unistd.h however I am not able to get to definition of the sys_reboot function.



      Where can I find the definition of sys_reboot in the kernel source?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 16 '17 at 17:38









      Stephen Kitt

      143k22309372




      143k22309372










      asked Dec 15 '17 at 21:15









      AnkurTank

      3562825




      3562825




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          The reboot system call is defined in kernel/reboot.c — look for SYSCALL_DEFINE4(reboot.



          For ARM systems you’ll probably be interested in the ARM-specific support in
          arch/arm/kernel/reboot.c, and perhaps in machine-specific support in one of the arch/arm/mach-… directories.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411144%2fhow-to-track-down-sys-reboot-function-in-linux-kernel-for-arm-architecture%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            The reboot system call is defined in kernel/reboot.c — look for SYSCALL_DEFINE4(reboot.



            For ARM systems you’ll probably be interested in the ARM-specific support in
            arch/arm/kernel/reboot.c, and perhaps in machine-specific support in one of the arch/arm/mach-… directories.






            share|improve this answer
























              up vote
              1
              down vote













              The reboot system call is defined in kernel/reboot.c — look for SYSCALL_DEFINE4(reboot.



              For ARM systems you’ll probably be interested in the ARM-specific support in
              arch/arm/kernel/reboot.c, and perhaps in machine-specific support in one of the arch/arm/mach-… directories.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                The reboot system call is defined in kernel/reboot.c — look for SYSCALL_DEFINE4(reboot.



                For ARM systems you’ll probably be interested in the ARM-specific support in
                arch/arm/kernel/reboot.c, and perhaps in machine-specific support in one of the arch/arm/mach-… directories.






                share|improve this answer












                The reboot system call is defined in kernel/reboot.c — look for SYSCALL_DEFINE4(reboot.



                For ARM systems you’ll probably be interested in the ARM-specific support in
                arch/arm/kernel/reboot.c, and perhaps in machine-specific support in one of the arch/arm/mach-… directories.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 15 '17 at 21:52









                Stephen Kitt

                143k22309372




                143k22309372






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411144%2fhow-to-track-down-sys-reboot-function-in-linux-kernel-for-arm-architecture%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)