Apple have made VNOP_MONITOR() available as a public symbol in macOS 15.4 beta in response to the bug report I submitted, FB16082106. Yep. It doesn't always happen, but the bug process can work. Is there anywhere I could look for VNOP_MONITOR()+vnode_notify() usage examples other than the SMBClient and Darwin/XNU sources as it's not immediately clear how remote filesystem changes are propagated across all connected clients through the use of those functions? A few different answers: In terms of fs drivers VNOP_MONITOR used by NFS and afp as well as smb, but I'm not sure that will show you anything fundamentally different. In terms of what vnode_notify() actually does, the vfs system automatically generates* FSEvent's based on it's own interactions with the VFS driver. vnode_notify() lets a vfs driver manually trigger that process. The basic flow here is that VNOP_MONITOR is how the vfs system tells your driver what the larger system is currently interested in and vnode_notify() is how your driver tel
Topic:
App & System Services
SubTopic:
Core OS
Tags: