This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c890786083765c0054a8f17e2c5ab603c6fad5d7 Author: jingfei <[email protected]> AuthorDate: Mon Nov 23 17:47:32 2026 +0800 Documentation/userfs: describe the syncfs and link methods Document that syncfs, link, symlink, readlink and lstat are forwarded to optional daemon methods, and what happens when a daemon does not implement them. Signed-off-by: jingfei <[email protected]> --- Documentation/os/filesystem/userfs.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/os/filesystem/userfs.rst b/Documentation/os/filesystem/userfs.rst index 399d34904ca..eaed52a301a 100644 --- a/Documentation/os/filesystem/userfs.rst +++ b/Documentation/os/filesystem/userfs.rst @@ -13,3 +13,11 @@ arbitrate advisory locks itself (``setlk`` is non-blocking; return life cycle. Without them the OS local lock table is used. Events are injected back with ``userfs_notify_event()`` (``CONFIG_FS_NOTIFY_INJECT``). + +Optional file system methods +============================ + +``syncfs`` and, with ``CONFIG_FS_LINKS``, ``link``, ``symlink``, +``readlink`` and ``lstat`` are forwarded to the daemon methods of the +same name. A daemon that leaves one of them NULL answers ``-ENOSYS``; +``lstat`` then falls back to ``stat``.
