linux – 什么是匿名的inode?

我做了一个谷歌搜索关于“匿名inode”,它似乎与epoll相关…但实际上是什么?

解决方法

至少在某些上下文中,匿名inode是没有附加目录条目的inode.创建这样一个inode的最简单方法就是这样:
int fd = open( "/tmp/file",O_CREAT | O_RDWR,0666 );
unlink( "/tmp/file" );
// Note that the descriptor fd now points to an inode that has no filesystem entry; you
// can still write to it,fstat() it,etc. but you can't find it in the filesystem.

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...