What are anon_inodes?
Clash 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_inode
s ? Are these similar to anonymous pipes ?
linux proc file-types
add a comment |Â
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_inode
s ? Are these similar to anonymous pipes ?
linux proc file-types
Some info here.
â Sparhawk
Aug 19 at 23:45
add a comment |Â
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_inode
s ? Are these similar to anonymous pipes ?
linux proc file-types
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_inode
s ? Are these similar to anonymous pipes ?
linux proc file-types
linux proc file-types
asked Aug 19 at 23:31
Sergiy Kolodyazhnyy
7,93511648
7,93511648
Some info here.
â Sparhawk
Aug 19 at 23:45
add a comment |Â
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
add a comment |Â
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 formanon_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.
OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean thatanon_inode
is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it'seventpoll
type, but I don't even know what that is and didn't even knoweventpoll
exists till today, so at the very basic level, what isanon_inode
after all ?
â Sergiy Kolodyazhnyy
Aug 20 at 7:10
@SergiyKolodyazhnyy - at basic levelanon_inode
could've been something that was a file but is no longer on the disk.epoll
is for monitoring multiple file descriptors, similar topoll
- 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 foranon_inodes
might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
â slmâ¦
Aug 20 at 7:17
add a comment |Â
up vote
0
down vote
These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.
add a comment |Â
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 formanon_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.
OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean thatanon_inode
is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it'seventpoll
type, but I don't even know what that is and didn't even knoweventpoll
exists till today, so at the very basic level, what isanon_inode
after all ?
â Sergiy Kolodyazhnyy
Aug 20 at 7:10
@SergiyKolodyazhnyy - at basic levelanon_inode
could've been something that was a file but is no longer on the disk.epoll
is for monitoring multiple file descriptors, similar topoll
- 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 foranon_inodes
might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
â slmâ¦
Aug 20 at 7:17
add a comment |Â
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 formanon_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.
OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean thatanon_inode
is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it'seventpoll
type, but I don't even know what that is and didn't even knoweventpoll
exists till today, so at the very basic level, what isanon_inode
after all ?
â Sergiy Kolodyazhnyy
Aug 20 at 7:10
@SergiyKolodyazhnyy - at basic levelanon_inode
could've been something that was a file but is no longer on the disk.epoll
is for monitoring multiple file descriptors, similar topoll
- 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 foranon_inodes
might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
â slmâ¦
Aug 20 at 7:17
add a comment |Â
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 formanon_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.
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 formanon_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.
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 thatanon_inode
is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it'seventpoll
type, but I don't even know what that is and didn't even knoweventpoll
exists till today, so at the very basic level, what isanon_inode
after all ?
â Sergiy Kolodyazhnyy
Aug 20 at 7:10
@SergiyKolodyazhnyy - at basic levelanon_inode
could've been something that was a file but is no longer on the disk.epoll
is for monitoring multiple file descriptors, similar topoll
- 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 foranon_inodes
might be helpful too - github.com/torvalds/linux/blob/master/fs/anon_inodes.c.
â slmâ¦
Aug 20 at 7:17
add a comment |Â
OK, so "...file descriptors that have no corresponding inode..." So if inode is a data structure related to filesystems, does that mean thatanon_inode
is basically a file that doesn't live on disk and is mapped in memory somewhere ? In my example it'seventpoll
type, but I don't even know what that is and didn't even knoweventpoll
exists till today, so at the very basic level, what isanon_inode
after all ?
â Sergiy Kolodyazhnyy
Aug 20 at 7:10
@SergiyKolodyazhnyy - at basic levelanon_inode
could've been something that was a file but is no longer on the disk.epoll
is for monitoring multiple file descriptors, similar topoll
- 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 foranon_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
add a comment |Â
up vote
0
down vote
These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.
add a comment |Â
up vote
0
down vote
These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.
add a comment |Â
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.
These come from the epoll syscalls for monitoring multiple other file descriptors. Nothing to do with anonymous pipes.
answered Aug 19 at 23:44
danblack
2194
2194
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Some info here.
â Sparhawk
Aug 19 at 23:45