gtpc2mja | C/C++ Language Support User's Guide |
All operations on the file system and on regular files are atomic. In effect, each file system API function runs in its own unique commit scope. The device driver functions, on the other hand, run in the same commit scope as the caller of the file system API. Therefore, it is up to the device driver to determine whether it runs as part of the application commit scope, if it suspends the application's commit scope, or if commit scopes are not relevant to it. You can write a device driver so that updates to the special files that it controls are part of a commit scope that encompasses a transaction or are like atomic updates to regular files.