I'm learning file operation calls under Linux. The `read()` and `write()` and many other functions use cache to increase performance, and I know `fsync()` can transfer data from cache to disk device. 

However, is there any commands or system calls that can determine whether the data is cached or written to disk?