What are anon_inodes?

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











up vote
2
down vote

favorite












While looking through /proc/[PID]/fd/ folder of various processes, I found curious entry for dbus



lrwx------ 1 root root 64 Aug 20 05:46 4 -> anon_inode:[eventpoll]


Hence the question, what are anon_inodes ? Are these similar to anonymous pipes ?










share|improve this question





















  • Some info here.
    – Sparhawk
    Aug 19 at 23:45














up vote
2
down vote

favorite












While looking through /proc/[PID]/fd/ folder of various processes, I found curious entry for dbus



lrwx------ 1 root root 64 Aug 20 05:46 4 -> anon_inode:[eventpoll]


Hence the question, what are anon_inodes ? Are these similar to anonymous pipes ?










share|improve this question





















  • Some info here.
    – Sparhawk
    Aug 19 at 23:45












up vote
2
down vote

favorite









up vote
2
down vote

favorite











While looking through /proc/[PID]/fd/ folder of various processes, I found curious entry for dbus



lrwx------ 1 root root 64 Aug 20 05:46 4 -> anon_inode:[eventpoll]


Hence the question, what are anon_inodes ? Are these similar to anonymous pipes ?










share|improve this question













While looking through /proc/[PID]/fd/ folder of various processes, I found curious entry for dbus



lrwx------ 1 root root 64 Aug 20 05:46 4 -> anon_inode:[eventpoll]


Hence the question, what are anon_inodes ? Are these similar to anonymous pipes ?







linux proc file-types






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 19 at 23:31









Sergiy Kolodyazhnyy

7,93511648




7,93511648











  • Some info here.
    – Sparhawk
    Aug 19 at 23:45
















  • Some info here.
    – Sparhawk
    Aug 19 at 23:45















Some info here.
– Sparhawk
Aug 19 at 23:45




Some info here.
– Sparhawk
Aug 19 at 23:45










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










Everything under /proc is covered in the man proc. This section covers anon_inode.




For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A readlink(2) call on this file
returns a string in the format:



 type:[inode]


For example, socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under
/proc/net/.



For file descriptors that have no corresponding inode (e.g., file descriptors produced by epoll_create(2), eventfd(2), inotify_init(2), signalfd(2), and
timerfd(2)), the entry will be a symbolic link with contents of the form



 anon_inode:<file-type>


In some cases, the file-type is surrounded by square brackets.



For example, an epoll file descriptor will have a symbolic link whose content is the string anon_inode:[eventpoll].




For more on epoll I discuss them here - What information can I find out about an eventpoll on a running thread?.



For additional information on anon_inode's - What is an anonymous inode in Linux?. Basically there is/was data on disk that no longer has a filesystem reference to access it. An anon_inode shows that there's a file descriptor which has no referencing inode.






share|improve this answer






















  • OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:10










  • @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
    – slm♦
    Aug 20 at 7:15










  • OK that's what I wanted to know.
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:17










  • @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
    – slm♦
    Aug 20 at 7:17

















up vote
0
down vote













These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.






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%2f463548%2fwhat-are-anon-inodes%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Everything under /proc is covered in the man proc. This section covers anon_inode.




    For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A readlink(2) call on this file
    returns a string in the format:



     type:[inode]


    For example, socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under
    /proc/net/.



    For file descriptors that have no corresponding inode (e.g., file descriptors produced by epoll_create(2), eventfd(2), inotify_init(2), signalfd(2), and
    timerfd(2)), the entry will be a symbolic link with contents of the form



     anon_inode:<file-type>


    In some cases, the file-type is surrounded by square brackets.



    For example, an epoll file descriptor will have a symbolic link whose content is the string anon_inode:[eventpoll].




    For more on epoll I discuss them here - What information can I find out about an eventpoll on a running thread?.



    For additional information on anon_inode's - What is an anonymous inode in Linux?. Basically there is/was data on disk that no longer has a filesystem reference to access it. An anon_inode shows that there's a file descriptor which has no referencing inode.






    share|improve this answer






















    • OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:10










    • @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
      – slm♦
      Aug 20 at 7:15










    • OK that's what I wanted to know.
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:17










    • @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
      – slm♦
      Aug 20 at 7:17














    up vote
    2
    down vote



    accepted










    Everything under /proc is covered in the man proc. This section covers anon_inode.




    For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A readlink(2) call on this file
    returns a string in the format:



     type:[inode]


    For example, socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under
    /proc/net/.



    For file descriptors that have no corresponding inode (e.g., file descriptors produced by epoll_create(2), eventfd(2), inotify_init(2), signalfd(2), and
    timerfd(2)), the entry will be a symbolic link with contents of the form



     anon_inode:<file-type>


    In some cases, the file-type is surrounded by square brackets.



    For example, an epoll file descriptor will have a symbolic link whose content is the string anon_inode:[eventpoll].




    For more on epoll I discuss them here - What information can I find out about an eventpoll on a running thread?.



    For additional information on anon_inode's - What is an anonymous inode in Linux?. Basically there is/was data on disk that no longer has a filesystem reference to access it. An anon_inode shows that there's a file descriptor which has no referencing inode.






    share|improve this answer






















    • OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:10










    • @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
      – slm♦
      Aug 20 at 7:15










    • OK that's what I wanted to know.
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:17










    • @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
      – slm♦
      Aug 20 at 7:17












    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    Everything under /proc is covered in the man proc. This section covers anon_inode.




    For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A readlink(2) call on this file
    returns a string in the format:



     type:[inode]


    For example, socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under
    /proc/net/.



    For file descriptors that have no corresponding inode (e.g., file descriptors produced by epoll_create(2), eventfd(2), inotify_init(2), signalfd(2), and
    timerfd(2)), the entry will be a symbolic link with contents of the form



     anon_inode:<file-type>


    In some cases, the file-type is surrounded by square brackets.



    For example, an epoll file descriptor will have a symbolic link whose content is the string anon_inode:[eventpoll].




    For more on epoll I discuss them here - What information can I find out about an eventpoll on a running thread?.



    For additional information on anon_inode's - What is an anonymous inode in Linux?. Basically there is/was data on disk that no longer has a filesystem reference to access it. An anon_inode shows that there's a file descriptor which has no referencing inode.






    share|improve this answer














    Everything under /proc is covered in the man proc. This section covers anon_inode.




    For file descriptors for pipes and sockets, the entries will be symbolic links whose content is the file type with the inode. A readlink(2) call on this file
    returns a string in the format:



     type:[inode]


    For example, socket:[2248868] will be a socket and its inode is 2248868. For sockets, that inode can be used to find more information in one of the files under
    /proc/net/.



    For file descriptors that have no corresponding inode (e.g., file descriptors produced by epoll_create(2), eventfd(2), inotify_init(2), signalfd(2), and
    timerfd(2)), the entry will be a symbolic link with contents of the form



     anon_inode:<file-type>


    In some cases, the file-type is surrounded by square brackets.



    For example, an epoll file descriptor will have a symbolic link whose content is the string anon_inode:[eventpoll].




    For more on epoll I discuss them here - What information can I find out about an eventpoll on a running thread?.



    For additional information on anon_inode's - What is an anonymous inode in Linux?. Basically there is/was data on disk that no longer has a filesystem reference to access it. An anon_inode shows that there's a file descriptor which has no referencing inode.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 20 at 7:27

























    answered Aug 20 at 6:58









    slm♦

    238k65493664




    238k65493664











    • OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:10










    • @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
      – slm♦
      Aug 20 at 7:15










    • OK that's what I wanted to know.
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:17










    • @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
      – slm♦
      Aug 20 at 7:17
















    • OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:10










    • @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
      – slm♦
      Aug 20 at 7:15










    • OK that's what I wanted to know.
      – Sergiy Kolodyazhnyy
      Aug 20 at 7:17










    • @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
      – slm♦
      Aug 20 at 7:17















    OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:10




    OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean that anon_inode is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it's eventpoll type, but I don't even know what that is and didn't even know eventpoll exists till today, so at the very basic level, what is anon_inode after all ?
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:10












    @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
    – slm♦
    Aug 20 at 7:15




    @SergiyKolodyazhnyy - at basic level anon_inode could've been something that was a file but is no longer on the disk. epoll is for monitoring multiple file descriptors, similar to poll - en.wikipedia.org/wiki/Epoll
    – slm♦
    Aug 20 at 7:15












    OK that's what I wanted to know.
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:17




    OK that's what I wanted to know.
    – Sergiy Kolodyazhnyy
    Aug 20 at 7:17












    @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
    – slm♦
    Aug 20 at 7:17




    @SergiyKolodyazhnyy - the src for anon_inodes might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
    – slm♦
    Aug 20 at 7:17












    up vote
    0
    down vote













    These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.






    share|improve this answer
























      up vote
      0
      down vote













      These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.






        share|improve this answer












        These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 19 at 23:44









        danblack

        2194




        2194



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463548%2fwhat-are-anon-inodes%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