2 ms·
> memfd_create() does not create an inode. It only creates a file descriptor. It creates both; memfd_create (and timerfd_create, signalfd, eventfd, userfaultfd
by JoshTriplett 10y ago
> memfd_create() does not create an inode. It only creates a file descriptor.
It creates both; memfd_create (and timerfd_create, signalfd, eventfd, userfaultfd, epoll, and others) use a kernel subsystem called "anon_inode" to create an in-memory inode to back the file descriptor.
- JoshTriplett 10y ago(Minor correction: memfd_create creates an in-memory inode without using anon_inode, while the various other syscalls use anon_inode.)