「anonymous inode」でググってみたところ、epollに関係しているようなのですが…一体何なのでしょうか?
17270 次
2 に答える
21
少なくとも一部のコンテキストでは、匿名 i ノードは、ディレクトリ エントリが添付されていない i ノードです。このような i ノードを作成する最も簡単な方法は次のとおりです。
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.
于 2010-12-22T12:09:56.667 に答える