incubator-nuttx/fs/notify
Michal Lenc 531dbaf561 fs_close: provide inotify call for close
Close operation on file should lead to IN_CLOSE_WRITE or
IN_CLOSE_NOWRITE notifications. This commits adds the notification
support. Notifying on close is a little bit trickier as a lower layer
may not have the full file path after successful close and inode release.
Calling notification before close is not a solution since close might
not end successfully.

The solution is to obtain and buffer the path before calling close
and then pass the buffered path to the notify_close. This required the
change in notify_close function arguments: filep is no longer
required, path and oflags are passed instead.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2024-10-08 08:14:19 +08:00
..
Kconfig inotifiy:reduce stack memory used in inotify 2024-08-22 01:50:37 +08:00
Make.defs
inotify.c fs_close: provide inotify call for close 2024-10-08 08:14:19 +08:00
notify.h fs_close: provide inotify call for close 2024-10-08 08:14:19 +08:00