flush() before use...
I am working on a Linux device driver, and have already implimented the basic open(), read(), write() and close() function. The next thing I need to add is a flush() operation, as there are several things that need to be reinitialised between tasks. I think I know what to do on the kernel side of things, but I actually do not know what the flush command is! There does not seem to be an actual `int flush(int fd)' function (at least, there is no man page for it on my system), so I guess the function is named something else.
Simple question, really: what is the C function that falls the flush() operation from a device driver?