在linux命令行中执行man fflush即可。

我的本意是想弄明白fflush()函数是数据的写入目的地是哪里,如下是man fflush结果:

NOTES

       Note that fflush() only flushes the user-space buffers provided by the C library.  To ensure that the data is physically stored on disk the kernel buffers must be flushed too, for example, with sync(2) or fsync(2).

 

从上面的描述看,fflush()的目的地是kernel buffers,也就是file system cache,也就是kernel的 page cache。