Why when I run `$ ipcs` are all shared memory segment keys “0x00000000”?

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











up vote
-1
down vote

favorite












So when I run $ ipcs, the shared memory segment section returns a variety of results:



------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 524288 jvn 600 524288 2 dest
0x00000000 1048577 jvn 600 524288 2 dest
0x00000000 1769474 jvn 600 393216 2 dest
0x00000000 753667 jvn 600 524288 2 dest
0x00000000 1146884 jvn 600 16777216 2


The 0x00000000 value is present in every IPC object, why does it not differ? What does it mean?



To provide more context, the TLDP states:




To obtain a unique ID, a key must be used. The key must be mutually agreed upon by both client and server processes. This represents the first step in constructing a client/server framework for an application.



When you use a telephone to call someone, you must know their number. In addition, the phone company must know how to relay your outgoing call to its final destination. Once the other party responds by answering the telephone call, the connection is made.



In the case of System V IPC facilities, the telephone'' correllates directly with the type of object being used. Thephone company'', or routing method, can be directly associated with an IPC key.



The key can be the same value every time, by hardcoding a key value into an application. This has the disadvantage of the key possibly being in use already. Often, the ftok() function is used to generate key values for both the client and the server.











share|improve this question

























    up vote
    -1
    down vote

    favorite












    So when I run $ ipcs, the shared memory segment section returns a variety of results:



    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 524288 jvn 600 524288 2 dest
    0x00000000 1048577 jvn 600 524288 2 dest
    0x00000000 1769474 jvn 600 393216 2 dest
    0x00000000 753667 jvn 600 524288 2 dest
    0x00000000 1146884 jvn 600 16777216 2


    The 0x00000000 value is present in every IPC object, why does it not differ? What does it mean?



    To provide more context, the TLDP states:




    To obtain a unique ID, a key must be used. The key must be mutually agreed upon by both client and server processes. This represents the first step in constructing a client/server framework for an application.



    When you use a telephone to call someone, you must know their number. In addition, the phone company must know how to relay your outgoing call to its final destination. Once the other party responds by answering the telephone call, the connection is made.



    In the case of System V IPC facilities, the telephone'' correllates directly with the type of object being used. Thephone company'', or routing method, can be directly associated with an IPC key.



    The key can be the same value every time, by hardcoding a key value into an application. This has the disadvantage of the key possibly being in use already. Often, the ftok() function is used to generate key values for both the client and the server.











    share|improve this question























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      So when I run $ ipcs, the shared memory segment section returns a variety of results:



      ------ Shared Memory Segments --------
      key shmid owner perms bytes nattch status
      0x00000000 524288 jvn 600 524288 2 dest
      0x00000000 1048577 jvn 600 524288 2 dest
      0x00000000 1769474 jvn 600 393216 2 dest
      0x00000000 753667 jvn 600 524288 2 dest
      0x00000000 1146884 jvn 600 16777216 2


      The 0x00000000 value is present in every IPC object, why does it not differ? What does it mean?



      To provide more context, the TLDP states:




      To obtain a unique ID, a key must be used. The key must be mutually agreed upon by both client and server processes. This represents the first step in constructing a client/server framework for an application.



      When you use a telephone to call someone, you must know their number. In addition, the phone company must know how to relay your outgoing call to its final destination. Once the other party responds by answering the telephone call, the connection is made.



      In the case of System V IPC facilities, the telephone'' correllates directly with the type of object being used. Thephone company'', or routing method, can be directly associated with an IPC key.



      The key can be the same value every time, by hardcoding a key value into an application. This has the disadvantage of the key possibly being in use already. Often, the ftok() function is used to generate key values for both the client and the server.











      share|improve this question













      So when I run $ ipcs, the shared memory segment section returns a variety of results:



      ------ Shared Memory Segments --------
      key shmid owner perms bytes nattch status
      0x00000000 524288 jvn 600 524288 2 dest
      0x00000000 1048577 jvn 600 524288 2 dest
      0x00000000 1769474 jvn 600 393216 2 dest
      0x00000000 753667 jvn 600 524288 2 dest
      0x00000000 1146884 jvn 600 16777216 2


      The 0x00000000 value is present in every IPC object, why does it not differ? What does it mean?



      To provide more context, the TLDP states:




      To obtain a unique ID, a key must be used. The key must be mutually agreed upon by both client and server processes. This represents the first step in constructing a client/server framework for an application.



      When you use a telephone to call someone, you must know their number. In addition, the phone company must know how to relay your outgoing call to its final destination. Once the other party responds by answering the telephone call, the connection is made.



      In the case of System V IPC facilities, the telephone'' correllates directly with the type of object being used. Thephone company'', or routing method, can be directly associated with an IPC key.



      The key can be the same value every time, by hardcoding a key value into an application. This has the disadvantage of the key possibly being in use already. Often, the ftok() function is used to generate key values for both the client and the server.








      linux ipc sysv






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 8 at 17:28









      John Von Neumann

      1387




      1387




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Found the answer through a course online, from the Linux Foundation Certified Sysadmin content:




          Note almost all of the currently running shared memory segments have a
          key of 0 or 0x00000000 (also known as IPC_PRIVATE) which means
          they are only shared between processes in a parent/child relationship.







          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%2f467746%2fwhy-when-i-run-ipcs-are-all-shared-memory-segment-keys-0x00000000%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
            0
            down vote













            Found the answer through a course online, from the Linux Foundation Certified Sysadmin content:




            Note almost all of the currently running shared memory segments have a
            key of 0 or 0x00000000 (also known as IPC_PRIVATE) which means
            they are only shared between processes in a parent/child relationship.







            share|improve this answer
























              up vote
              0
              down vote













              Found the answer through a course online, from the Linux Foundation Certified Sysadmin content:




              Note almost all of the currently running shared memory segments have a
              key of 0 or 0x00000000 (also known as IPC_PRIVATE) which means
              they are only shared between processes in a parent/child relationship.







              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Found the answer through a course online, from the Linux Foundation Certified Sysadmin content:




                Note almost all of the currently running shared memory segments have a
                key of 0 or 0x00000000 (also known as IPC_PRIVATE) which means
                they are only shared between processes in a parent/child relationship.







                share|improve this answer












                Found the answer through a course online, from the Linux Foundation Certified Sysadmin content:




                Note almost all of the currently running shared memory segments have a
                key of 0 or 0x00000000 (also known as IPC_PRIVATE) which means
                they are only shared between processes in a parent/child relationship.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 9 at 11:48









                John Von Neumann

                1387




                1387



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467746%2fwhy-when-i-run-ipcs-are-all-shared-memory-segment-keys-0x00000000%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay