the fsevents api in macos allows applications to register for notifications of changes to a given directory tree. whenever the filesystem is changed, the kernel passes notifications via the special device file codice_1 to a userspace process called codice_2. this process combines multiple changes to a single directory tree that occur within a short period of time, then notifies applications that have registered for changes to the affected directory.