首页 > 编程知识 正文

linuxgetopt函数怎么用,linux 回调函数

时间:2023-05-06 10:31:10 阅读:260420 作者:4994

相关参考链接:

https://blog.csdn.net/msdnchina/article/details/99205560

在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。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。